Function at 0x42c810
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x59a9f6
mov eax, dword fs:[0]
push eax
sub esp, 0xc78
mov eax, dword [0x601018]
xor eax, esp
mov dword [esp + 0xc70], eax
push ebx
push esi
push edi
mov eax, dword [0x601018]
xor eax, esp
push eax
lea eax, [esp + 0xc88]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], eax
mov ebx, 0xf
xor edi, edi
mov eax, 0x5bc564
lea esi, [esp + 0x28]
mov dword [esp + 0x24], vtable.FileFind.0
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
call fcn.00402fe0
xor eax, eax
mov dword [esp + 0xc90], eax
mov dword [esp + 0x54], eax
mov byte [esp + 0x44], al
mov eax, 0x5bc564
lea esi, [esp + 0x44]
mov dword [esp + 0x58], ebx
call fcn.00402fe0
xor esi, esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0xffffffff
mov edx, dword [ebp + 0xc]
mov ebx, 1
mov dword [esp + 0xc90], ebx
call fcn.0042c390
mov edi, eax
mov dword [esp + 0x18], edi
cmp edi, esi
je 0x42c8e4
lea ecx, [esp + 0x24]
call fcn.0050a540
mov eax, edi
jmp 0x42cbe5
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x6c]
push ecx
push 0x5cac84
mov edx, edi
lea ecx, [esp + 0x2c]
call fcn.0050a5e0
mov dword [esp + 0x14], eax
cmp eax, esi
je 0x42cbd8
lea eax, [esp + 0x87c]
mov edx, edi
sub edx, eax
mov eax, dword [ebp + 0xc]
lea ecx, [esp + 0x47c]
sub eax, ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], eax
cmp edi, esi
jne 0x42c936
call dword [sym.imp.MSVCR100.dll_abort]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x87c]
lea ecx, [ecx]
mov cl, byte [edx + eax]
test cl, cl
je 0x42c956
mov byte [eax], cl
add eax, ebx
lea ecx, [esp + 0xc7b]
cmp eax, ecx
jb 0x42c940
mov byte [eax], 0
lea eax, [esp + 0x87c]
cmp byte [eax], 0
je 0x42c974
add eax, ebx
lea edx, [esp + 0xc7b]
cmp eax, edx
jb 0x42c960
jmp 0x42c99c
lea ecx, [esp + 0xc7b]
cmp eax, ecx
jae 0x42c99c
mov edx, 0x5cc7f4
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x42c99c
mov byte [eax], cl
add eax, ebx
lea ecx, [esp + 0xc7b]
cmp eax, ecx
jb 0x42c986
mov byte [eax], 0
lea eax, [esp + 0x87c]
cmp byte [eax], 0
je 0x42c9ba
add eax, ebx
lea edx, [esp + 0xc7b]
cmp eax, edx
jb 0x42c9a6
jmp 0x42c9e6
lea ecx, [esp + 0xc7b]
cmp eax, ecx
jae 0x42c9e6
lea edx, [esp + 0x6c]
sub edx, eax
jmp 0x42c9d0
mov cl, byte [edx + eax]
test cl, cl
je 0x42c9e6
mov byte [eax], cl
add eax, ebx
lea ecx, [esp + 0xc7b]
cmp eax, ecx
jb 0x42c9d0
mov byte [eax], 0
cmp dword [ebp + 0xc], esi
jne 0x42c9f4
call dword [sym.imp.MSVCR100.dll_abort]
lea eax, [esp + 0x47c]
jmp 0x42ca00
mov edx, dword [esp + 0x20]
mov cl, byte [edx + eax]
test cl, cl
je 0x42ca1a
mov byte [eax], cl
add eax, ebx
lea ecx, [esp + 0x87b]
cmp eax, ecx
jb 0x42ca00
mov byte [eax], 0
lea eax, [esp + 0x47c]
cmp byte [eax], 0
je 0x42ca38
add eax, ebx
lea edx, [esp + 0x87b]
cmp eax, edx
jb 0x42ca24
jmp 0x42ca66
lea ecx, [esp + 0x87b]
cmp eax, ecx
jae 0x42ca66
mov edx, 0x5cc7f4
sub edx, eax
lea ebx, [ebx]
mov cl, byte [edx + eax]
test cl, cl
je 0x42ca66
mov byte [eax], cl
add eax, ebx
lea ecx, [esp + 0x87b]
cmp eax, ecx
jb 0x42ca50
mov byte [eax], 0
lea eax, [esp + 0x47c]
cmp byte [eax], 0
je 0x42ca84
add eax, ebx
lea edx, [esp + 0x87b]
cmp eax, edx
jb 0x42ca70
jmp 0x42caab
lea ecx, [esp + 0x87b]
cmp eax, ecx
jae 0x42caab
lea edx, [esp + 0x6c]
sub edx, eax
mov cl, byte [edx + eax]
test cl, cl
je 0x42caab
mov byte [eax], cl
add eax, ebx
lea ecx, [esp + 0x87b]
cmp eax, ecx
jb 0x42ca95
mov byte [eax], 0
mov ecx, 0x5cb680
lea eax, [esp + 0x6c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42cad7
test dl, dl
je 0x42cad3
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42cad7
add eax, 2
add ecx, 2
test dl, dl
jne 0x42cab7
xor eax, eax
jmp 0x42cadc
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x42cb64
mov ecx, 0x5cb684
lea eax, [esp + 0x6c]
lea ecx, [ecx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x42cb10
test dl, dl
je 0x42cb0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x42cb10
add eax, 2
add ecx, 2
test dl, dl
jne 0x42caf0
xor eax, eax
jmp 0x42cb15
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
je 0x42cb64
cmp byte [esp + 0x474], bl
jne 0x42cb44
lea edx, [esp + 0x47c]
push edx
lea eax, [esp + 0x880]
push eax
call fcn.0042c810
add esp, 8
mov dword [esp + 0x18], eax
cmp eax, esi
jne 0x42cb8d
jmp 0x42cb64
push ebx
lea ecx, [esp + 0x480]
push ecx
lea edx, [esp + 0x884]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
neg eax
sbb eax, eax
neg eax
dec eax
js 0x42cb83
mov eax, dword [esp + 0x14]
push eax
lea edx, [esp + 0x70]
lea ecx, [esp + 0x28]
call fcn.0050a8d0
test al, al
je 0x42cb8d
mov edx, dword [esp + 0x1c]
jmp 0x42c928
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
cmp eax, 0xffffffff
je 0x42cb9d
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x28]
mov ecx, 0x10
mov dword [esp + 0x38], esi
cmp dword [esp + 0x3c], ecx
jae 0x42cbb4
lea eax, [esp + 0x28]
mov byte [eax], 0
mov eax, dword [esp + 0x44]
mov dword [esp + 0x54], esi
cmp dword [esp + 0x58], ecx
jae 0x42cbc9
lea eax, [esp + 0x44]
mov byte [eax], 0
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], 0xffffffff
lea ecx, [esp + 0x24]
call fcn.0050a540
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0xc88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc70]
xor ecx, esp
call fcn.00596083
mov esp, ebp
pop ebp
ret