Function at 0x4cf394
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x27
push 0
push 0
dec ecx
jne 0x4cf39c
push ebx
push esi
mov dword [ebp - 0x30], eax
xor eax, eax
push ebp
push 0x4cfb66
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x4cfb06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x30]
call fcn.004ce970
mov ecx, dword [ebp - 0x30]
mov dl, 1
mov eax, dword [0x4caf24]
call fcn.004cc834
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x110]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x48]
call fcn.004cc1f4
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x30]
add eax, 0x48
call fcn.004051c4
lea ecx, [ebp - 0x114]
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x48]
mov eax, dword [ebp - 0x30]
call fcn.004cc400
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0xc]
add eax, 0x40
call fcn.004051c4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x4c]
mov esi, dword [eax + 8]
dec esi
test esi, esi
jl 0x4cf5ac
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov edx, dword [eax + ebx*4]
mov eax, 0x4cfb7c
call fcn.004055ac
cdq
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
jne 0x4cf481
cmp dword [ebp - 0x48], 0
jbe 0x4cf554
jmp 0x4cf487
jle 0x4cf554
push ebp
lea eax, [ebp - 0x11c]
push eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub eax, 1
sbb edx, 0
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
mov edx, 1
call fcn.004054d0
mov edx, dword [ebp - 0x11c]
lea ecx, [ebp - 0x118]
mov eax, dword [ebp - 0x30]
call fcn.004cc400
mov eax, dword [ebp - 0x118]
call fcn.004ceff8
pop ecx
push ebp
lea eax, [ebp - 0x120]
push eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
add eax, 1
adc edx, 0
mov edx, eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
mov ecx, 8
call fcn.004054d0
mov eax, dword [ebp - 0x120]
push eax
lea eax, [ebp - 0x128]
push eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
sub eax, 1
sbb edx, 0
mov ecx, eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
mov edx, 1
call fcn.004054d0
mov edx, dword [ebp - 0x128]
lea ecx, [ebp - 0x124]
mov eax, dword [ebp - 0x30]
call fcn.004cc400
mov eax, dword [ebp - 0x124]
pop edx
call fcn.004cf0d8
pop ecx
jmp 0x4cf5a4
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
call fcn.004cbf08
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], edx
cmp dword [ebp - 0x44], 0
jne 0x4cf583
cmp dword [ebp - 0x48], 0
jb 0x4cf5a4
jmp 0x4cf585
jl 0x4cf5a4
push ebp
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x4c]
mov eax, dword [eax + 4]
mov eax, dword [eax + ebx*4]
mov ecx, dword [ebp - 0x2c]
lea edx, [ebp - 0x28]
call fcn.004ceeac
pop ecx
inc ebx
dec esi
jne 0x4cf452
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x10
mov ecx, 1
mov edx, dword [0x4ca6ac]
call fcn.0040614c
add esp, 4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x14
mov ecx, 1
mov edx, dword [0x4cada4]
call fcn.0040614c
add esp, 4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x18
mov ecx, 1
mov edx, dword [0x4cadc8]
call fcn.0040614c
add esp, 4
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
add eax, 0x1c
mov ecx, 1
mov edx, dword [0x4cadec]
call fcn.0040614c
add esp, 4
lea eax, [ebp - 0x50]
mov edx, 0x4cfb88
call fcn.00404b14
mov esi, dword [ebp - 8]
dec esi
test esi, esi
jl 0x4cf682
inc esi
xor ebx, ebx
lea eax, [ebp - 0x130]
mov ecx, 0x4cfb88
mov edx, dword [ebp - 0x50]
call fcn.00404d88
mov edx, dword [ebp - 0x130]
lea eax, [ebp - 0x12c]
call fcn.00405310
lea eax, [ebp - 0x12c]
mov edx, dword [ebp - 0xc]
mov edx, dword [edx + 0x10]
mov edx, dword [edx + ebx*4]
call fcn.0040533c
mov edx, dword [ebp - 0x12c]
lea eax, [ebp - 0x50]
call fcn.00404d04
inc ebx
dec esi
jne 0x4cf638
lea eax, [ebp - 0x134]
mov ecx, dword [ebp - 0x50]
mov edx, 0x4cfb94
call fcn.00404d88
mov eax, dword [ebp - 0x134]
xor edx, edx
call fcn.004ca2dc
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x5a], 0
je 0x4cf6be
push dword [ebp - 0x14]
push dword [ebp - 0x18]
mov ebx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x5c]
call dword [ebx + 0x58]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0xb0], 0
je 0x4cf7ad
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xb4]
call fcn.004cbad0
test al, al
je 0x4cf7ad
lea ecx, [ebp - 0x138]
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x40]
mov edx, 0x4cfba8
call fcn.004cbcd8
mov edx, dword [ebp - 0x138]
mov eax, dword [ebp - 0x30]
add eax, 0x40
call fcn.004051c4
push 0xffffffffffffffff
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x40]
call fcn.00405320
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xb4]
call fcn.00405320
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x4cf76e
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x40]
push eax
call fcn.0040ba90
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0x20
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc8]
push eax
push 1
mov eax, dword [ebp - 0x30]
lea ecx, [eax + 0x34]
mov dl, 1
mov eax, dword [0x4cabd8]
call fcn.004ce634
mov dword [ebp - 0x3c], eax
jmp 0x4cf7e3
call sub.kernel32.dll_GetLastError_1
mov edx, dword [ebp - 0x30]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x30], 9
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x62], 0
je 0x4cf7e3
mov eax, dword [0x4dc044]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x40]
push eax
mov ebx, dword [ebp - 0x30]
mov ecx, 9
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
jmp 0x4cf7e3
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0x40]
push eax
call fcn.0040ba90
add esp, 0xfffffff8
fstp qword [esp]
wait
push 0x20
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xc8]
push eax
push 0
mov eax, dword [ebp - 0x30]
lea ecx, [eax + 0x34]
mov dl, 1
mov eax, dword [0x4cabd8]
call fcn.004ce634
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
test edx, edx
je 0x4cf7f0
sub edx, 0xffffffbc
call fcn.00406910
lea eax, [ebp - 0x4c]
call fcn.004068f8
push eax
push 0x4dc080
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xe8]
push eax
mov eax, dword [eax]
call dword [eax]
test eax, eax
jne 0x4cfa07
xor ebx, ebx
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 0xb8]
sub al, 1
jb 0x4cf833
je 0x4cf8fe
jmp 0x4cf99d
mov esi, ebx
add esi, esi
mov word [ebp + esi*8 - 0x100], 0x13
mov eax, 0x4cfbbc
call fcn.00405c04
mov dword [ebp + ebx*4 - 0x10c], eax
mov eax, dword [ebp - 0x30]
mov al, byte [eax + 0xb9]
call fcn.004cee68
mov dword [ebp + esi*8 - 0xf8], eax
inc ebx
mov esi, ebx
add esi, esi
mov word [ebp + esi*8 - 0x100], 8
mov eax, 0x4cfbc8
call fcn.00405c04
mov dword [ebp + ebx*4 - 0x10c], eax
mov eax, dword [ebp - 0x30]
test byte [eax + 0x98], 2
je 0x4cf8a6
push 0x4cfbcc
call sub.oleaut32.dll_SysAllocString
mov dword [ebp + esi*8 - 0xf8], eax
jmp 0x4cf8b7
push 0x4cfbd4
call sub.oleaut32.dll_SysAllocString
mov dword [ebp + esi*8 - 0xf8], eax
inc ebx
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0xba], 0
jbe 0x4cf99d
mov esi, ebx
add esi, esi
mov word [ebp + esi*8 - 0x100], 0x13
mov eax, 0x4cfbe4
call fcn.00405c04
mov dword [ebp + ebx*4 - 0x10c], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax + 0xba]
mov dword [ebp + esi*8 - 0xf8], eax
inc ebx
jmp 0x4cf99d
mov esi, ebx
add esi, esi
mov word [ebp + esi*8 - 0x100], 8
mov eax, 0x4cfbf0
call fcn.00405c04
mov dword [ebp + ebx*4 - 0x10c], eax
push 0x4cfbf4
call sub.oleaut32.dll_SysAllocString
mov dword [ebp + esi*8 - 0xf8], eax
inc ebx
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0xbb], 0
jbe 0x4cf966
mov esi, ebx
add esi, esi
mov word [ebp + esi*8 - 0x100], 0x13
mov eax, 0x4cfc08
call fcn.00405c04
mov dword [ebp + ebx*4 - 0x10c], eax
mov dword [ebp + esi*8 - 0xf8], 0xa
inc ebx
mov eax, dword [ebp - 0x30]
cmp byte [eax + 0xbc], 0
jbe 0x4cf99d
mov esi, ebx
add esi, esi
mov word [ebp + esi*8 - 0x100], 0x13
mov eax, 0x4cfc14
call fcn.00405c04
mov dword [ebp + ebx*4 - 0x10c], eax
mov dword [ebp + esi*8 - 0xf8], 0x1e
inc ebx
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xd8]
xor edx, edx
call fcn.0040544c
je 0x4cf9ec
mov eax, dword [ebp - 0x30]
test byte [eax + 0x98], 0x10
je 0x4cf9ec
mov esi, ebx
add esi, esi
mov word [ebp + esi*8 - 0x100], 8
mov eax, 0x4cfc20
call fcn.00405c04
mov dword [ebp + ebx*4 - 0x10c], eax
push 0x4cfbcc
call sub.oleaut32.dll_SysAllocString
mov dword [ebp + esi*8 - 0xf8], eax
inc ebx
push ebx
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebp - 0x4c]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x34], eax
cmp dword [ebp - 8], 0
jbe 0x4cfa46
lea eax, [ebp - 0x38]
mov edx, dword [ebp - 0xc]
test edx, edx
je 0x4cfa1a
sub edx, 0xffffffb4
call fcn.00406910
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x4cfa29
sub eax, 0xffffffb4
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x40]
push eax
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xe8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc]
mov dword [ebp - 0x34], eax
jmp 0x4cfa7a
mov eax, dword [ebp - 0x30]
mov dword [eax + 0x30], 0xa
mov eax, dword [ebp - 0x30]
cmp word [eax + 0x62], 0
je 0x4cfa73
mov eax, dword [0x4dc048]
push eax
push 0
mov ebx, dword [ebp - 0x30]
mov ecx, 0xa
mov edx, dword [ebp - 0x30]
mov eax, dword [ebx + 0x64]
call dword [ebx + 0x60]
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x30]
call fcn.004d0444
mov eax, dword [ebp - 0x3c]
mov eax, dword [eax + 0x40]
call fcn.00405f70
push eax
mov eax, dword [ebp - 0x30]
add eax, 0xdc
mov ecx, 1
mov edx, dword [0x4ca6ac]
call fcn.0040614c
add esp, 4
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xdc]
call fcn.00405f70
mov esi, eax
dec esi
test esi, esi
jl 0x4cfae2
inc esi
xor ebx, ebx
mov eax, dword [ebp - 0x30]
mov eax, dword [eax + 0xdc]
lea eax, [eax + ebx*4]
lea edx, [ebx + ebx*2]
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx + 0x40]
mov edx, dword [ecx + edx*8]
call fcn.004051c4
inc ebx
dec esi
jne 0x4cfac1
cmp dword [ebp - 0x40], 0
je 0x4cfaf0
lea eax, [ebp - 0x40]
call fcn.004068f8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cfb0d
mov eax, dword [ebp - 0x30]
call fcn.004ce970
ret