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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50487b
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x140
mov eax, dword [0x52d324]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x150], edi
mov esi, ecx
cmp dword [edi + 0x10], 0
je 0x404c8e
cmp dword [esi + 0x10], 0
je 0x404c8e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404299
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x404c8e
mov ecx, esi
call fcn.00403440
test al, al
je 0x4042e4
cmp dword [edi + 0x10], 0
je 0x4042dd
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x4042c3
mov eax, dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4042dd
mov ecx, edi
call fcn.00403440
test al, al
je 0x404c8e
mov ecx, edi
call fcn.00403940
xor eax, eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 7
mov word [ebp - 0x11c], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0xf4], eax
mov dword [ebp - 0xf0], 7
mov word [ebp - 0x104], ax
sub esp, 0x18
mov byte [ebp - 4], 1
mov ecx, esp
push esi
call fcn.00402570
lea edx, [ebp - 0x104]
lea ecx, [ebp - 0x11c]
call fcn.00403de0
add esp, 0x18
test al, al
jne 0x40434d
mov byte [ebp - 0x135], al
jmp 0x404c0a
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov dword [ebp - 0xdc], eax
mov dword [ebp - 0xd8], 7
mov word [ebp - 0xec], ax
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push edi
call fcn.00402570
lea edx, [ebp - 0xec]
lea ecx, [ebp - 0x74]
call fcn.00403de0
add esp, 0x18
test al, al
je 0x404b75
mov ecx, esi
call fcn.00403440
test al, al
jne 0x4045d7
lea ecx, [ebp - 0x74]
call fcn.00403940
test al, al
je 0x404b75
cmp dword [ebp - 0xdc], 0
lea ecx, [ebp - 0xec]
lea eax, [ebp - 0x104]
cmovne eax, ecx
lea edx, [ebp - 0x74]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00406cd0
add esp, 4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.004035b0
test al, al
je 0x404411
cmp dword [esi + 0x10], 0
je 0x40446e
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x404404
mov eax, dword [esi]
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call edi
test eax, eax
je 0x404474
push 0x51e7c4
lea ecx, [ebp - 0x5c]
call fcn.00402520
lea eax, [ebp - 0x5c]
mov byte [ebp - 4], 6
push eax
lea ecx, [ebp - 0x2c]
call fcn.00403d40
mov edx, dword [ebp - 0x48]
add esp, 4
cmp edx, 8
jb 0x40456e
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404564
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cae
jmp 0x404564
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [ebp - 0x1c], 0
je 0x40448c
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push eax
call edi
test eax, eax
jne 0x404411
lea edx, [ebp - 0x2c]
lea ecx, [ebp - 0x5c]
call fcn.004031a0
mov edi, eax
mov edx, esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x44]
call fcn.004031a0
cmp dword [edi + 0x14], 0x10
mov edx, edi
jb 0x4044b1
mov edx, dword [edi]
cmp dword [eax + 0x14], 0x10
mov ecx, eax
jb 0x4044bb
mov ecx, dword [eax]
push dword [edi + 0x10]
push edx
mov edx, dword [eax + 0x10]
call fcn.00407430
mov edx, dword [ebp - 0x30]
add esp, 8
mov byte [ebp - 0x135], al
cmp edx, 0x10
jb 0x404504
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4044fa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cb3
push edx
push ecx
call fcn.004dc783
add esp, 8
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp edx, 0x10
jb 0x40454e
mov ecx, dword [ebp - 0x5c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x404544
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cb8
push edx
push ecx
call fcn.004dc783
add esp, 8
cmp byte [ebp - 0x135], 0
je 0x404411
mov byte [ebp - 0x135], 1
jmp 0x404594
push edx
push ecx
call fcn.004dc783
add esp, 8
cmp dword [ebp - 0x18], 8
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
cmp dword [esi + 0x14], 8
jb 0x404581
mov esi, dword [esi]
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne byte [ebp - 0x135]
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x404b7c
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4045c8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cbd
push edx
push ecx
call fcn.004dc783
add esp, 8
jmp 0x404b7c
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0
push 1
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 7
mov ecx, esi
call fcn.00405080
mov edi, dword [ebp - 0x20]
xor ecx, ecx
mov dword [ebp - 0x14c], ecx
mov eax, 0x2aaaaaab
mov ecx, dword [ebp - 0x1c]
add esp, 8
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4049e4
xor eax, eax
mov dword [ebp - 0x13c], eax
mov edx, dword [esi + 0x10]
lea ecx, [eax + edi]
mov eax, dword [ecx + 0x10]
sub eax, edx
dec eax
push eax
lea eax, [edx + 1]
push eax
lea eax, [ebp - 0x134]
push eax
call fcn.00405480
push dword [ebp - 0x150]
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 8
call fcn.00402570
mov edx, 0x5c
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xd4]
call fcn.0040c050
mov edx, 0x2f
lea ecx, [ebp - 0xd4]
call fcn.0040c050
push 1
xor eax, eax
mov dword [ebp - 0xac], 0
push 0x51e7c0
lea ecx, [ebp - 0xbc]
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
call fcn.00402710
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xa4]
push 1
xor eax, eax
mov dword [ebp - 0x94], 0
push 0x51e7c0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
call fcn.00402710
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0xd4]
cmp dword [ebp - 0xc0], 8
push dword [ebp - 0xc4]
cmovae eax, dword [ebp - 0xd4]
push eax
push ecx
lea ecx, [ebp - 0xa4]
call fcn.00406680
mov dword [ebp - 0x7c], 0
xor ecx, ecx
mov dword [ebp - 0x78], 0
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x8c], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x7c], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 7
mov word [eax], cx
lea eax, [ebp - 0x134]
mov byte [ebp - 4], 0xc
push eax
lea edx, [ebp - 0x8c]
lea ecx, [ebp - 0x5c]
call fcn.00402b90
add esp, 4
lea ecx, [ebp - 0xbc]
mov byte [ebp - 4], 0xd
push ecx
mov edx, eax
lea ecx, [ebp - 0x44]
call fcn.00406c40
add esp, 4
mov byte [ebp - 4], 0xf
mov edx, dword [ebp - 0x48]
cmp edx, 8
jb 0x4047ba
mov ecx, dword [ebp - 0x5c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4047b0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cb3
push edx
push ecx
call fcn.004dc783
add esp, 8
xor eax, eax
mov dword [ebp - 0x4c], 0
mov dword [ebp - 0x48], 7
mov word [ebp - 0x5c], ax
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x78]
cmp edx, 8
jb 0x40480f
mov ecx, dword [ebp - 0x8c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404805
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cb3
push edx
push ecx
call fcn.004dc783
add esp, 8
xor eax, eax
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 7
mov word [ebp - 0x8c], ax
mov byte [ebp - 4], 0x11
mov edx, dword [ebp - 0x90]
cmp edx, 8
jb 0x40486a
mov ecx, dword [ebp - 0xa4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404860
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cb3
push edx
push ecx
call fcn.004dc783
add esp, 8
xor eax, eax
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], 7
mov word [ebp - 0xa4], ax
mov byte [ebp - 4], 0x12
mov edx, dword [ebp - 0xa8]
cmp edx, 8
jb 0x4048cb
mov ecx, dword [ebp - 0xbc]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4048c1
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cb3
push edx
push ecx
call fcn.004dc783
add esp, 8
xor eax, eax
mov dword [ebp - 0xac], 0
lea ecx, [ebp - 0x44]
mov dword [ebp - 0xa8], 7
mov word [ebp - 0xbc], ax
call fcn.00403940
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0x44]
mov edi, dword [ebp - 0x13c]
lea ecx, [edi + ecx]
call fcn.00404230
mov byte [ebp - 4], 9
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x404942
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404938
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cb3
push edx
push ecx
call fcn.004dc783
add esp, 8
xor eax, eax
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp edx, 8
jb 0x40499a
mov ecx, dword [ebp - 0xd4]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404990
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cb3
push edx
push ecx
call fcn.004dc783
add esp, 8
lea ecx, [ebp - 0x134]
mov byte [ebp - 4], 7
call fcn.00402480
mov ecx, dword [ebp - 0x1c]
add edi, 0x18
inc dword [ebp - 0x14c]
mov eax, 0x2aaaaaab
mov dword [ebp - 0x13c], edi
mov edi, dword [ebp - 0x20]
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14c], eax
jae 0x4049e4
mov eax, dword [ebp - 0x13c]
jmp 0x404630
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
push 0
push 0
lea edx, [ebp - 0x148]
mov byte [ebp - 4], 0x13
mov ecx, esi
call fcn.00405080
mov edi, dword [ebp - 0x144]
xor ecx, ecx
mov esi, dword [ebp - 0x148]
mov eax, 0x2aaaaaab
mov dword [ebp - 0x13c], ecx
add esp, 8
mov ecx, edi
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x404a96
xor edi, edi
nop word [eax + eax]
mov edx, dword [ebp - 0x150]
lea ecx, [edi + esi]
call fcn.00404230
mov ecx, dword [ebp - 0x144]
lea edi, [edi + 0x18]
mov esi, dword [ebp - 0x148]
mov eax, 0x2aaaaaab
inc dword [ebp - 0x13c]
sub ecx, esi
imul ecx
mov ecx, dword [ebp - 0x13c]
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp ecx, eax
jb 0x404a50
mov edi, dword [ebp - 0x144]
test esi, esi
je 0x404b12
push ecx
mov edx, edi
mov ecx, esi
call fcn.00402de0
mov ecx, dword [ebp - 0x140]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x148]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x404aea
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cc2
push ecx
push esi
call fcn.004dc783
add esp, 8
mov dword [ebp - 0x148], 0
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x404b6c
mov edx, dword [ebp - 0x1c]
push ecx
call fcn.00402de0
mov ecx, dword [ebp - 0x18]
mov eax, 0x2aaaaaab
mov esi, dword [ebp - 0x20]
add esp, 4
sub ecx, esi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, esi
shl ecx, 3
cmp ecx, 0x1000
jb 0x404b62
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cc7
push ecx
push esi
call fcn.004dc783
add esp, 8
mov byte [ebp - 0x135], 1
jmp 0x404b7c
mov byte [ebp - 0x135], 0
mov edx, dword [ebp - 0xd8]
cmp edx, 8
jb 0x404bbc
mov ecx, dword [ebp - 0xec]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404bb2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404ccc
push edx
push ecx
call fcn.004dc783
add esp, 8
mov edx, dword [ebp - 0x60]
cmp edx, 8
jb 0x404bf6
mov ecx, dword [ebp - 0x74]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404bec
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cd1
push edx
push ecx
call fcn.004dc783
add esp, 8
xor eax, eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 7
mov word [ebp - 0x74], ax
mov edx, dword [ebp - 0xf0]
cmp edx, 8
jb 0x404c4a
mov ecx, dword [ebp - 0x104]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404c40
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cd6
push edx
push ecx
call fcn.004dc783
add esp, 8
mov edx, dword [ebp - 0x108]
cmp edx, 8
jb 0x404c86
mov ecx, dword [ebp - 0x11c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404c7c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404cdb
push edx
push ecx
call fcn.004dc783
add esp, 8
mov al, byte [ebp - 0x135]
jmp 0x404c90
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004dc214
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
call fcn.004e2bf9
int3