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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4583e9
mov eax, dword fs:[0]
push eax
mov eax, 0x1168
call fcn.00432b00
mov eax, dword [0x4754f4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x20
mov edi, esp
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x1160], esi
mov dword [ebp - 0x1164], esp
mov dword [ebp - 0x1158], edi
mov dword [edi], ebx
push 8
mov dword [ebp - 4], ebx
call fcn.00426610
add esp, 4
cmp eax, ebx
je 0x403ba9
mov dword [edi], eax
xor ecx, ecx
xor edx, edx
mov dword [eax], ecx
mov dword [eax + 4], edx
mov eax, dword [edi]
mov dword [eax], edi
mov dword [ebp - 4], 1
lea eax, [esi + 0x88]
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push ebx
mov word [edi + 4], cx
push eax
or ecx, 0xffffffff
mov dword [ebp - 0x1164], eax
call fcn.004081a0
lea ebx, [ebp - 0x1054]
mov dword [ebp - 4], 0xffffffff
call fcn.00415a90
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x812]
mov dword [ebp - 4], 2
push eax
mov word [ebp - 0x814], dx
call fcn.0042c300
mov ecx, dword [ebp - 0x1050]
mov eax, 8
add esp, 0x2c
cmp dword [ebp - 0x103c], eax
jae 0x4035be
lea ecx, [ebp - 0x1050]
cmp dword [esi + 0x20], eax
jb 0x4035d1
mov eax, dword [esi + 0xc]
add esi, 0xc
mov dword [ebp - 0x1158], esi
jmp 0x4035da
lea eax, [esi + 0xc]
mov dword [ebp - 0x1158], eax
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
push eax
lea ecx, [ebp - 0x814]
push 0x466c60
push ecx
call edi
xor edx, edx
push 0x7fe
push edx
lea eax, [ebp - 0x1012]
push eax
mov word [ebp - 0x1014], dx
call fcn.0042c300
add esp, 0x1c
lea esi, [ebp - 0x1034]
call fcn.004153e0
mov ecx, dword [ebp - 0x1050]
mov ebx, 8
cmp dword [ebp - 0x103c], ebx
jae 0x403632
lea ecx, [ebp - 0x1050]
cmp dword [eax + 0x18], ebx
jb 0x40363c
mov eax, dword [eax + 4]
jmp 0x40363f
add eax, 4
push ecx
push eax
lea ecx, [ebp - 0x1014]
push str._s_s.fsv
push ecx
call edi
add esp, 0x10
cmp dword [ebp - 0x101c], ebx
jb 0x403669
mov edx, dword [ebp - 0x1030]
push edx
call fcn.00425770
add esp, 4
lea ecx, [ebp - 0x1034]
xor eax, eax
push ecx
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], 0
mov word [ebp - 0x1030], ax
call fcn.00409010
mov esi, dword [ebp - 0x1160]
cmp dword [esi + 0x7c], 0
je 0x4038d4
push 0x400
lea edx, [ebp - 0x814]
push 0
push edx
call fcn.0042c300
lea edi, [esi + 0x68]
add esp, 0xc
cmp dword [edi + 0x18], ebx
jb 0x4036ce
mov ecx, dword [edi + 4]
lea eax, [edi + 4]
mov dword [ebp - 0x115c], eax
jmp 0x4036d7
lea ecx, [edi + 4]
mov dword [ebp - 0x115c], ecx
mov edx, dword [ebp - 0x1050]
cmp dword [ebp - 0x103c], ebx
jae 0x4036eb
lea edx, [ebp - 0x1050]
mov eax, dword [ebp - 0x1158]
cmp dword [esi + 0x20], ebx
jb 0x4036f8
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 0x814]
push 0x466c88
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0x400
lea edx, [ebp - 0x1014]
push 0
push edx
call fcn.0042c300
add esp, 0xc
lea esi, [ebp - 0x1034]
call fcn.004153e0
mov ecx, dword [ebp - 0x115c]
cmp dword [edi + 0x18], ebx
jb 0x40373e
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x1050]
cmp dword [ebp - 0x103c], ebx
jae 0x403752
lea edx, [ebp - 0x1050]
cmp dword [eax + 0x18], ebx
jb 0x40375c
mov eax, dword [eax + 4]
jmp 0x40375f
add eax, 4
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push ecx
push edx
push eax
lea edx, [ebp - 0x1014]
push 0x466ca0
push edx
call esi
add esp, 0x14
cmp dword [ebp - 0x101c], ebx
jb 0x403790
mov eax, dword [ebp - 0x1030]
push eax
call fcn.00425770
add esp, 4
lea edx, [ebp - 0x1034]
xor ecx, ecx
push edx
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], 0
mov word [ebp - 0x1030], cx
call fcn.00409010
push 1
push 0x466cb8
xor eax, eax
mov ecx, edi
call fcn.00408450
cmp eax, 0xffffffff
jne 0x4038d4
push 3
push 0x466cbc
xor eax, eax
mov ecx, edi
call fcn.00408450
cmp eax, 0xffffffff
jne 0x4038d4
cmp dword [edi + 0x18], ebx
jb 0x4037fa
mov eax, dword [ebp - 0x115c]
mov ecx, dword [eax]
jmp 0x403800
mov ecx, dword [ebp - 0x115c]
mov edx, dword [ebp - 0x1050]
cmp dword [ebp - 0x103c], ebx
jae 0x403814
lea edx, [ebp - 0x1050]
mov eax, dword [ebp - 0x1160]
cmp dword [eax + 0x20], ebx
mov eax, dword [ebp - 0x1158]
jb 0x403827
mov eax, dword [eax]
push ecx
push edx
push eax
lea ecx, [ebp - 0x814]
push 0x466cc4
push ecx
call esi
add esp, 0x14
lea esi, [ebp - 0x1034]
call fcn.004153e0
cmp dword [edi + 0x18], ebx
jb 0x403855
mov edx, dword [ebp - 0x115c]
mov ecx, dword [edx]
jmp 0x40385b
mov ecx, dword [ebp - 0x115c]
mov edx, dword [ebp - 0x1050]
cmp dword [ebp - 0x103c], ebx
jae 0x40386f
lea edx, [ebp - 0x1050]
cmp dword [eax + 0x18], ebx
jb 0x403879
mov eax, dword [eax + 4]
jmp 0x40387c
add eax, 4
push ecx
push edx
push eax
lea eax, [ebp - 0x1014]
push 0x466ce0
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
cmp dword [ebp - 0x101c], ebx
jb 0x4038ab
mov ecx, dword [ebp - 0x1030]
push ecx
call fcn.00425770
add esp, 4
lea eax, [ebp - 0x1034]
xor edx, edx
push eax
mov dword [ebp - 0x101c], 7
mov dword [ebp - 0x1020], 0
mov word [ebp - 0x1030], dx
call fcn.00409010
lea ecx, [ebp - 0x1154]
call fcn.00401430
mov ecx, dword [ebp - 0x1164]
push ecx
lea esi, [ebp - 0x1034]
call fcn.00414a80
add esp, 4
mov esi, eax
lea edi, [ebp - 0x1074]
mov byte [ebp - 4], 4
call fcn.00408600
mov byte [ebp - 4], 3
cmp dword [ebp - 0x101c], 0x10
jb 0x403921
mov edx, dword [ebp - 0x1030]
push edx
call fcn.00425770
add esp, 4
lea ecx, [ebp - 0x1034]
mov dword [ebp - 0x101c], 0xf
mov dword [ebp - 0x1020], 0
mov byte [ebp - 0x1030], 0
call fcn.004089e0
mov eax, dword [ebp - 0x1160]
cmp dword [eax + 0xc0], ebx
jb 0x40395d
mov eax, dword [eax + 0xac]
jmp 0x403962
add eax, 0xac
push eax
lea ecx, [ebp - 0x814]
lea ebx, [ebp - 0x1154]
call fcn.00404fe0
mov esi, dword [ebp - 0x1160]
test eax, eax
je 0x403a1a
mov eax, dword [ebp + 8]
push eax
mov ecx, esi
call fcn.00405340
cmp dword [esi + 0xc8], 0
je 0x4039a5
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov eax, dword [esi]
mov edx, dword [edx]
push eax
call edx
lea ecx, [ebp - 0x1154]
mov byte [ebp - 4], 2
call fcn.00401500
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x103c], 8
jb 0x4039d3
mov eax, dword [ebp - 0x1050]
push eax
call fcn.00425770
add esp, 4
mov dword [ebp - 0x103c], 7
mov dword [ebp - 0x1040], 0
xor ecx, ecx
lea edx, [ebp - 0x1054]
mov word [ebp - 0x1050], cx
push edx
call fcn.00409010
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00420d00
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x1158]
mov ebx, 8
cmp dword [esi + 0x20], ebx
jb 0x403a2e
mov eax, dword [edi]
jmp 0x403a34
mov eax, dword [ebp - 0x1158]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x403a53
cmp dword [esi + 0x20], ebx
jb 0x403a48
mov eax, dword [edi]
jmp 0x403a4a
mov eax, edi
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
xor eax, eax
mov dword [ebp - 0x1030], eax
mov dword [ebp - 0x102c], eax
mov dword [ebp - 0x1028], eax
mov dword [ebp - 0x1024], eax
mov dword [ebp - 0x1034], eax
mov dword [ebp - 0x1020], eax
mov dword [ebp - 0x101c], eax
mov word [ebp - 0x1018], ax
lea eax, [ebp - 0x814]
mov dword [ebp - 0x102c], eax
lea eax, [ebp - 0x1034]
lea ecx, [ebp - 0x1014]
mov edx, 0x614
mov ebx, 2
push eax
mov dword [ebp - 0x1030], ebx
mov dword [ebp - 0x1028], ecx
mov word [ebp - 0x1024], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
xor edi, edi
cmp eax, edi
je 0x403b2c
mov ecx, dword [ebp + 8]
push ecx
mov ecx, esi
call fcn.00405340
cmp dword [esi + 0xc8], edi
je 0x403aea
mov ecx, dword [esi + 0xc8]
mov edx, dword [ecx]
mov eax, dword [esi]
mov edx, dword [edx]
push eax
call edx
lea ecx, [ebp - 0x1154]
mov byte [ebp - 4], bl
call fcn.00401500
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x103c], 8
jb 0x403b17
mov eax, dword [ebp - 0x1050]
push eax
call fcn.00425770
add esp, 4
mov dword [ebp - 0x103c], 7
mov dword [ebp - 0x1040], edi
jmp 0x4039e7
lea edx, [ebp - 0x814]
call fcn.0041dbf0
push 0xffffffffffffffff
mov ecx, esi
call fcn.00405340
cmp dword [esi + 0xc8], edi
je 0x403b57
mov ecx, dword [esi + 0xc8]
mov eax, dword [ecx]
mov edx, dword [esi]
mov eax, dword [eax]
push edx
call eax
lea ecx, [ebp - 0x1154]
mov byte [ebp - 4], bl
call fcn.00401500
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x103c], 8
jb 0x403b84
mov ecx, dword [ebp - 0x1050]
push ecx
call fcn.00425770
add esp, 4
xor edx, edx
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x103c], 7
mov dword [ebp - 0x1040], edi
mov word [ebp - 0x1050], dx
push eax
jmp 0x4039f7
lea ecx, [ebp - 0x115c]
push ecx
lea ecx, [ebp - 0x1170]
mov dword [ebp - 0x115c], ebx
call fcn.004211a0
push 0x46ffcc
lea edx, [ebp - 0x1170]
push edx
mov dword [ebp - method.std::bad_alloc.virtual_0], vtable.std::bad_alloc.0
call fcn.00432fc0
int3