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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6471d6
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 0x4084d4
cmp dword [edi + 0x10], ebx
je 0x4084d4
cmp dword [edi + 0x14], 8
jb 0x4083de
mov eax, dword [edi]
jmp 0x4083e0
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x4084d4
mov ecx, edi
call fcn.004071f0
test al, al
je 0x408438
cmp dword [esi + 0x10], ebx
je 0x40842f
cmp dword [esi + 0x14], 8
jb 0x40840e
mov eax, dword [esi]
jmp 0x408410
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
setne al
cmp al, bl
je 0x40842f
mov ecx, esi
call fcn.004071f0
test al, al
je 0x4084d4
push esi
call fcn.00407640
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
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x9c]
push eax
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
call fcn.00408060
add esp, 0x24
cmp al, bl
jne 0x4084db
mov edi, 8
cmp dword [ebp - 0x34], edi
jb 0x4084b1
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 0x4084d4
mov edx, dword [ebp - 0x9c]
push edx
call fcn.004effaf
add esp, 4
xor al, al
jmp 0x408ac7
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
lea edx, [ebp - 0x80]
push edx
lea eax, [ebp - 0x64]
push eax
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
call fcn.00408060
add esp, 0x24
cmp al, bl
jne 0x40855a
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 0x408ac7
mov ecx, edi
call fcn.004071f0
test al, al
jne 0x408677
lea ecx, [ebp - 0x64]
push ecx
call fcn.00407640
add esp, 4
test al, al
je 0x408530
cmp dword [ebp - 0x70], ebx
lea ebx, [ebp - 0x48]
je 0x408584
lea ebx, [ebp - 0x80]
lea edx, [ebp - 0x64]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.0040ac60
lea ecx, [ebp - 0x2c]
push ecx
mov byte [ebp - 4], 4
call fcn.004073c0
mov edi, dword [ebp - 0x148]
add esp, 0xc
test al, al
je 0x4085e9
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.00406f30
test al, al
je 0x4085e9
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 0x408ac5
push 0x688638
lea ecx, [ebp - 0xd4]
call fcn.004036f0
lea edx, [ebp - 0xd4]
push edx
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 5
call fcn.00407e90
add esp, 8
lea ecx, [ebp - 0xd4]
call fcn.004bf3b0
mov ecx, dword [ebp - 0x2c]
mov eax, 8
cmp dword [ebp - 0x18], eax
jae 0x40862b
mov ecx, esi
cmp dword [edi + 0x14], eax
jb 0x408634
mov eax, dword [edi]
jmp 0x408636
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 0x408ac7
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x160], ebx
mov dword [ebp - 0x15c], ebx
push ebx
push 1
lea eax, [ebp - 0x164]
push eax
push edi
mov byte [ebp - 4], 6
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 ecx, edx
shr ecx, 0x1f
add esp, 0x10
add ecx, edx
mov dword [ebp - 0x14c], ebx
je 0x408931
mov dword [ebp - 0x150], ebx
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 eax, [ebp - 0xd4]
push eax
call fcn.00401e00
mov edx, dword [ebp - 0x154]
push 0xffffffffffffffff
mov byte [ebp - 4], 7
xor ecx, ecx
push ebx
mov word [ebp - 0x2c], cx
push edx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 7
mov dword [ebp - 0x1c], ebx
call fcn.00403240
lea eax, [ebp - 0x2c]
push 0x5c
push eax
mov byte [ebp - 4], 8
call fcn.004017c0
lea ecx, [ebp - 0x2c]
push 0x2f
push ecx
call fcn.004017c0
add esp, 0x10
push 0x688728
lea ecx, [ebp - 0x128]
call fcn.004036f0
mov edi, eax
push 0x688728
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 9
call fcn.004036f0
mov ecx, eax
lea eax, [ebp - 0x2c]
lea esi, [ebp - 0x10c]
mov byte [ebp - 4], 0xa
call fcn.0040ad10
lea edx, [ebp - 0xd4]
push edx
push eax
lea eax, [ebp - 0xf0]
push eax
mov byte [ebp - 4], 0xb
call fcn.0040ad50
add esp, 0xc
push edi
push eax
lea ecx, [ebp - 0xb8]
push ecx
mov byte [ebp - 4], 0xc
call fcn.0040ada0
add esp, 0xc
mov esi, 8
cmp dword [ebp - 0xdc], esi
jb 0x4087bd
mov edx, dword [ebp - 0xf0]
push edx
call fcn.004effaf
add esp, 4
mov edi, 7
xor eax, eax
mov dword [ebp - 0xdc], edi
mov dword [ebp - 0xe0], ebx
mov word [ebp - 0xf0], ax
cmp dword [ebp - 0xf8], esi
jb 0x4087ee
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 - 0x130], esi
jb 0x40881a
mov eax, dword [ebp - 0x144]
push eax
call fcn.004effaf
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x134], ebx
mov word [ebp - 0x144], cx
mov byte [ebp - 4], 0x11
cmp dword [ebp - 0x114], esi
jb 0x40884a
mov edx, dword [ebp - 0x128]
push edx
call fcn.004effaf
add esp, 4
lea ecx, [ebp - 0xb8]
xor eax, eax
push ecx
mov dword [ebp - 0x114], edi
mov dword [ebp - 0x118], ebx
mov word [ebp - 0x128], ax
call fcn.00407640
mov ecx, dword [ebp - 0x150]
add ecx, dword [ebp - 0x164]
add esp, 4
lea edx, [ebp - 0xb8]
push edx
push ecx
call fcn.00408380
add esp, 8
cmp dword [ebp - 0xa4], esi
jb 0x4088a1
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 0x4088c7
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.004effaf
add esp, 4
xor edx, edx
mov byte [ebp - 4], 6
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], ebx
mov word [ebp - 0x2c], dx
cmp dword [ebp - 0xc0], esi
jb 0x4088ee
mov eax, dword [ebp - 0xd4]
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 0x4086d3
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], 0x12
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 0x4089c7
mov dword [ebp - 0x148], ebx
mov ecx, dword [ebp - 0x154]
add esi, dword [ebp - 0x148]
push ecx
push esi
call fcn.00408380
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 0x408984
cmp esi, ebx
je 0x4089f5
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 0x408a3b
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 0x408a63
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 0x408a85
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 0x408aa2
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 0x408ac5
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