Function at 0x436430
Capabilities:
Check if file exists
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6472cb
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x6c3afc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x148], edi
mov dword [ebp - 0x154], esi
cmp dword [esi + 0x10], ebx
je 0x436582
cmp dword [edi + 0x10], ebx
je 0x436582
cmp dword [edi + 0x14], 8
jb 0x43648e
mov eax, dword [edi]
jmp 0x436490
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x436582
mov ecx, edi
call fcn.00435770
test al, al
je 0x4364e8
cmp dword [esi + 0x10], ebx
je 0x4364df
cmp dword [esi + 0x14], 8
jb 0x4364be
mov eax, dword [esi]
jmp 0x4364c0
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x4364df
mov ecx, esi
call fcn.00435770
test al, al
je 0x436582
push esi
call fcn.00435930
add esp, 4
mov esi, 7
xor eax, eax
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x8c], ebx
mov word [ebp - 0x9c], ax
mov dword [ebp - 4], ebx
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 1
mov dword [ebp - 0x14c], esp
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edi
mov word [ecx], dx
call fcn.00403240
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x9c]
call fcn.00436120
add esp, 0x1c
cmp al, bl
jne 0x436589
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x43655f
mov eax, dword [ebp - 0x48]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], cx
cmp dword [ebp - 0x88], edi
jb 0x436582
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004effaf
add esp, 4
xor al, al
jmp 0x436b51
xor eax, eax
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], ax
xor ecx, ecx
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], cx
mov eax, dword [ebp - 0x154]
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 3
mov dword [ebp - 0x14c], esp
push 0xffffffffffffffff
push ebx
xor edx, edx
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.00403240
lea edx, [ebp - 0x80]
lea ecx, [ebp - 0x64]
call fcn.00436120
add esp, 0x1c
cmp al, bl
jne 0x436606
lea ecx, [ebp - 0x80]
call fcn.004bf3b0
lea ecx, [ebp - 0x64]
call fcn.004bf3b0
lea ecx, [ebp - 0x48]
call fcn.004bf3b0
lea ecx, [ebp - 0x9c]
call fcn.004bf3b0
xor al, al
jmp 0x436b51
mov ecx, edi
call fcn.00435770
test al, al
jne 0x4366fc
lea ecx, [ebp - 0x64]
push ecx
call fcn.00435930
add esp, 4
test al, al
je 0x4365dc
cmp dword [ebp - 0x70], ebx
lea ebx, [ebp - 0x48]
je 0x436630
lea ebx, [ebp - 0x80]
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ac60
add esp, 8
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00435910
mov edi, dword [ebp - 0x148]
test al, al
je 0x436694
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.00406f30
test al, al
je 0x436694
lea ecx, [ebp - 0x2c]
call fcn.004bf3b0
lea ecx, [ebp - 0x80]
call fcn.004bf3b0
lea ecx, [ebp - 0x64]
call fcn.004bf3b0
lea ecx, [ebp - 0x48]
call fcn.004bf3b0
lea ecx, [ebp - 0x9c]
call fcn.004bf3b0
jmp 0x436b4f
push 1
lea esi, [ebp - 0x2c]
call fcn.00436030
mov ecx, dword [ebp - 0x2c]
mov eax, 8
add esp, 4
cmp dword [ebp - 0x18], eax
jae 0x4366b0
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x4366b9
mov eax, dword [edi]
jmp 0x4366bb
mov eax, edi
push 0
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
lea ecx, [ebp - 0x2c]
setne bl
call fcn.004bf3b0
lea ecx, [ebp - 0x80]
call fcn.004bf3b0
lea ecx, [ebp - 0x64]
call fcn.004bf3b0
lea ecx, [ebp - 0x48]
call fcn.004bf3b0
lea ecx, [ebp - 0x9c]
call fcn.004bf3b0
mov al, bl
jmp 0x436b51
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
push ebx
push 1
lea ecx, [ebp - 0x164]
push ecx
push edi
mov byte [ebp - 4], 5
call fcn.00436e30
mov ecx, dword [ebp - 0x160]
mov esi, dword [ebp - 0x164]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
add eax, edx
mov dword [ebp - 0x14c], ebx
je 0x4369bb
mov dword [ebp - 0x150], ebx
jmp 0x436760
mov ecx, dword [ebp - 0x150]
mov edx, dword [edi + 0x10]
mov eax, dword [ecx + esi + 0x10]
add ecx, esi
sub eax, edx
dec eax
push eax
inc edx
push edx
lea edx, [ebp - 0x144]
push edx
call fcn.00401e00
mov ecx, dword [ebp - 0x154]
push 0xffffffffffffffff
push ebx
mov byte [ebp - 4], 6
xor eax, eax
push ecx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], ax
call fcn.00403240
push 0x5c
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 7
call fcn.00432350
add esp, 4
push 0x2f
call fcn.00432350
add esp, 4
push 0x688728
lea ecx, [ebp - 0xf0]
call fcn.004036f0
mov edi, eax
push 0x688728
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 8
call fcn.004036f0
mov ecx, eax
mov eax, esi
lea esi, [ebp - 0x10c]
mov byte [ebp - 4], 9
call fcn.0040ad10
lea edx, [ebp - 0x144]
push edx
push eax
lea eax, [ebp - 0xd4]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040ad50
add esp, 0xc
push edi
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov byte [ebp - 4], 0xb
call fcn.0040ada0
add esp, 0xc
mov esi, 8
cmp dword [ebp - 0xc0], esi
jb 0x436847
mov edx, dword [ebp - 0xd4]
push edx
call fcn.004effaf
add esp, 4
mov edi, 7
xor eax, eax
mov dword [ebp - 0xc0], edi
mov dword [ebp - 0xc4], ebx
mov word [ebp - 0xd4], ax
cmp dword [ebp - 0xf8], esi
jb 0x436878
mov ecx, dword [ebp - 0x10c]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov dword [ebp - 0xf8], edi
mov dword [ebp - 0xfc], ebx
mov word [ebp - 0x10c], dx
cmp dword [ebp - 0x114], esi
jb 0x4368a4
mov eax, dword [ebp - 0x128]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ebx
mov word [ebp - 0x128], cx
mov byte [ebp - 4], 0x10
cmp dword [ebp - 0xdc], esi
jb 0x4368d4
mov edx, dword [ebp - 0xf0]
push edx
call fcn.004effaf
add esp, 4
lea ecx, [ebp - 0xb8]
xor eax, eax
push ecx
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], ax
call fcn.00435930
mov ecx, dword [ebp - 0x150]
add ecx, dword [ebp - 0x164]
add esp, 4
lea edx, [ebp - 0xb8]
push edx
push ecx
call fcn.00436430
add esp, 8
cmp dword [ebp - 0xa4], esi
jb 0x43692b
mov edx, dword [ebp - 0xb8]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov dword [ebp - 0xa4], edi
mov dword [ebp - 0xa8], ebx
mov word [ebp - 0xb8], ax
cmp dword [ebp - 0x18], esi
jb 0x436951
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov byte [ebp - 4], 5
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0x130], esi
jb 0x436978
mov eax, dword [ebp - 0x144]
push eax
call fcn.004effaf
add esp, 4
mov ecx, dword [ebp - 0x160]
mov esi, dword [ebp - 0x164]
mov edi, dword [ebp - 0x14c]
add dword [ebp - 0x150], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
mov dword [ebp - 0x14c], edi
cmp edi, ecx
mov edi, dword [ebp - 0x148]
jb 0x436760
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
push ebx
push ebx
lea edx, [ebp - 0x174]
push edx
push edi
mov byte [ebp - 4], 0x11
call fcn.00436e30
mov ecx, dword [ebp - 0x170]
mov esi, dword [ebp - 0x174]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add esp, 0x10
xor edi, edi
add eax, edx
je 0x436a51
mov dword [ebp - 0x148], ebx
mov ecx, dword [ebp - 0x154]
add esi, dword [ebp - 0x148]
push ecx
push esi
call fcn.00436430
mov ecx, dword [ebp - 0x170]
mov esi, dword [ebp - 0x174]
add dword [ebp - 0x148], 0x1c
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
add esp, 8
cmp edi, eax
jb 0x436a0e
cmp esi, ebx
je 0x436a7f
mov ecx, dword [ebp - 0x14c]
mov eax, dword [ebp - 0x170]
push ecx
lea edx, [ebp - 0x168]
push edx
push eax
push esi
call fcn.00402cd0
mov ecx, dword [ebp - 0x174]
push ecx
call fcn.004effaf
add esp, 0x14
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov dword [ebp - 0x16c], ebx
cmp eax, ebx
je 0x436ac5
mov edx, dword [ebp - 0x14c]
push edx
mov edx, dword [ebp - 0x160]
lea ecx, [ebp - 0x158]
push ecx
push edx
push eax
call fcn.00402cd0
mov eax, dword [ebp - 0x164]
push eax
call fcn.004effaf
add esp, 0x14
mov esi, 8
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
cmp dword [ebp - 0x6c], esi
jb 0x436aed
mov ecx, dword [ebp - 0x80]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov edi, 7
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x70], ebx
mov word [ebp - 0x80], dx
cmp dword [ebp - 0x50], esi
jb 0x436b0f
mov eax, dword [ebp - 0x64]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x54], ebx
mov word [ebp - 0x64], cx
cmp dword [ebp - 0x34], esi
jb 0x436b2c
mov edx, dword [ebp - 0x48]
push edx
call fcn.004effaf
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x38], ebx
mov word [ebp - 0x48], ax
cmp dword [ebp - 0x88], esi
jb 0x436b4f
mov ecx, dword [ebp - 0x9c]
push ecx
call fcn.004effaf
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dd8e2
mov esp, ebp
pop ebp
ret