Function at 0x10019130
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x368
push ebx
push ebp
push esi
push edi
mov ebp, ecx
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], 1
call fcn.100238b0
mov ebx, dword [sym.imp.GDI32.dll_CreateDCA]
mov dword [esp + 0x1c], eax
xor eax, eax
mov ecx, 0x41
lea edi, [esp + 0x168]
rep stosd dword es:[edi], eax
add ebp, 8
xor eax, eax
mov edi, str.DISPLAY
mov esi, ebp
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x24], 0x20
push eax
jne 0x1001919c
push eax
push str.DISPLAY
jmp 0x1001919f
push ebp
push 0
call ebx
mov ecx, dword [esp + 0x18]
mov esi, eax
mov eax, dword [ecx + 4]
mov edx, dword [eax]
lea ecx, [esp + 0x20]
push ecx
push esi
push eax
call dword [edx + 4]
push esi
mov edi, eax
call dword [sym.imp.GDI32.dll_DeleteDC]
test edi, edi
jne 0x10019496
xor edx, edx
mov edi, str.DISPLAY
mov esi, ebp
mov ecx, 8
repe cmpsb byte [esi], byte es:[edi]
push edx
push edx
jne 0x100191e3
push edx
push str.DISPLAY
jmp 0x100191e6
push ebp
push 0
call ebx
mov esi, eax
mov eax, dword [esp + 0x2c]
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jle 0x1001924a
mov eax, dword [esp + 0x18]
mov eax, dword [eax + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x40]
push edx
push edi
push esi
push eax
call dword [ecx + 0xf8]
test eax, eax
jne 0x1001923d
mov eax, dword [esp + 0x44]
cmp eax, 3
ja case.default.0x1001921a
jmp dword [eax*4 + 0x100194ac]
or dword [esp + 0x10], 1
jmp case.default.0x1001921a
or dword [esp + 0x10], 2
jmp case.default.0x1001921a
or dword [esp + 0x10], 4
jmp case.default.0x1001921a
or dword [esp + 0x10], 8
jmp case.default.0x1001921a
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x2c]
inc edi
cmp edi, eax
jl 0x100191f6
cmp esi, ebx
je 0x10019255
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov esi, dword [esp + 0x1c]
cmp esi, 2
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
jne 0x10019275
push 0x10039088
push 0x10039078
lea eax, [esp + 0x68]
push eax
jmp 0x10019284
push 0x10039074
push 0x10039078
lea ecx, [esp + 0x68]
push ecx
call ebp
add esp, 0xc
push 0x104
lea edx, [esp + 0x274]
push edx
lea eax, [esp + 0x68]
push eax
call fcn.10026df0
add esp, 0xc
xor eax, eax
jmp 0x100192b0
mov cl, byte [esp + eax + 0x270]
mov byte [esp + eax + 0x168], cl
inc eax
test cl, cl
jne 0x100192b0
lea ecx, [esp + 0x168]
push 0x78
push ecx
call fcn.10028a60
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
add esp, 8
cmp eax, ebx
je 0x100192ff
push ebx
lea edx, [esp + 0x16c]
mov word [eax], 0x70
push edx
lea eax, [esp + 0x278]
push eax
call edi
test eax, eax
jne 0x100192ff
mov dword [esp + 0x14], ebx
cmp esi, 2
jne 0x10019315
push 0x10039070
push 0x10039078
lea ecx, [esp + 0x68]
push ecx
jmp 0x10019324
push 0x1003906c
push 0x10039078
lea edx, [esp + 0x68]
push edx
call ebp
mov bl, byte [esp + 0x1c]
add esp, 0xc
test bl, 0xc
jne 0x1001938d
lea eax, [esp + 0x60]
push 0x78
push eax
call fcn.10028a60
push 0x104
lea ecx, [esp + 0x27c]
push ecx
lea edx, [esp + 0x70]
push edx
mov esi, eax
call fcn.10026df0
add esp, 0x14
test esi, esi
je 0x1001937d
push 0x104
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x68]
push ecx
mov word [esi], 0x70
call fcn.10026df0
add esp, 0xc
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x100193f2
push 0x104
lea eax, [esp + 0x274]
push eax
lea ecx, [esp + 0x68]
push ecx
call fcn.10026df0
add esp, 0xc
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x270]
mov byte [esp + eax + 0x168], cl
inc eax
test cl, cl
jne 0x100193b0
lea edx, [esp + 0x168]
push 0x78
push edx
call fcn.10028a60
add esp, 8
test eax, eax
je 0x100193fa
mov word [eax], 0x70
push 0
lea eax, [esp + 0x16c]
push eax
lea ecx, [esp + 0x278]
push ecx
call edi
test eax, eax
jne 0x100193fa
mov dword [esp + 0x14], eax
cmp dword [esp + 0x1c], 2
jne 0x10019412
push 0x10039068
push 0x10039078
lea edx, [esp + 0x68]
push edx
jmp 0x10019421
push str.TVFPM
push 0x10039078
lea eax, [esp + 0x68]
push eax
call ebp
add esp, 0xc
test bl, 2
je 0x100194a0
push 0x104
lea ecx, [esp + 0x274]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.10026df0
add esp, 0xc
xor eax, eax
jmp 0x10019450
mov cl, byte [esp + eax + 0x270]
mov byte [esp + eax + 0x168], cl
inc eax
test cl, cl
jne 0x10019450
lea eax, [esp + 0x168]
push 0x78
push eax
call fcn.10028a60
add esp, 8
test eax, eax
je 0x100194a0
push 0
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x278]
push edx
mov word [eax], 0x70
call edi
test eax, eax
jne 0x100194a0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret