Function at 0x430170
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5212d8
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x595be0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042f680
add esp, 4
movzx ecx, al
test ecx, ecx
jne 0x430385
push 1
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call fcn.0042f780
add esp, 0xc
movzx ecx, al
test ecx, ecx
jne 0x430385
push str.directory_create_error:
lea ecx, [ebp - 0x48]
call fcn.004289c0
mov dword [ebp - 4], 0
push 0x5627c0
lea ecx, [ebp - 0x40]
call fcn.00428940
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.0042a230
mov dword [ebp - 0x13c], eax
mov edx, dword [ebp - 0x13c]
mov dword [ebp - 0x114], edx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
lea edx, [ebp - 0xe4]
push edx
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0xdc], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp - 0xdc]
push edx
lea eax, [ebp - 0x74]
push eax
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x6c], eax
mov ecx, dword [ebp - 0x6c]
mov dword [ebp - 0x134], ecx
mov byte [ebp - 4], 4
push 2
mov edx, dword [ebp - 0x134]
push edx
lea eax, [ebp - 0x40]
push eax
call fcn.0042b420
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x74]
call fcn.00428a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xe4]
call fcn.00428a40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x7c]
call fcn.00428a40
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00428a40
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x124]
push ecx
call fcn.0042a9d0
add esp, 8
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
mov dword [ebp - 0xec], edx
mov dword [ebp - 4], 5
push str.copydirectory_failed_to_create_dir_
lea ecx, [ebp - 0x9c]
call fcn.004289c0
mov dword [ebp - 0x84], eax
mov eax, dword [ebp - 0x84]
mov dword [ebp - 0x8c], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0xec]
push ecx
mov edx, dword [ebp - 0x8c]
push edx
lea eax, [ebp - 0xf4]
push eax
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x144], eax
mov ecx, dword [ebp - 0x144]
mov dword [ebp - 0x94], ecx
mov byte [ebp - 4], 7
mov edx, dword [ebp - 0x94]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0042d650
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xf4]
call fcn.00428a40
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x9c]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x124]
call fcn.00428a40
xor al, al
jmp 0x43098e
push 0
mov ecx, dword [ebp + 8]
call fcn.004288a0
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
add eax, 2
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebp - 0x20]
mov dx, word [ecx]
mov word [ebp - 0x2e], dx
add dword [ebp - 0x20], 2
cmp word [ebp - 0x2e], 0
jne 0x43039e
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 0xa4]
sar eax, 1
mov dword [ebp - 0xfc], eax
mov ecx, dword [ebp - 0xfc]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fe866
add esp, 4
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0xac]
mov dword [ebp - 0x18], eax
push 0
mov ecx, dword [ebp + 8]
call fcn.004288a0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x18]
push edx
call fcn.005009eb
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov word [edx + ecx*2], ax
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov word [edx + ecx*2 + 2], ax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004288a0
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
add eax, 2
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x24]
mov dx, word [ecx]
mov word [ebp - 0x30], dx
add dword [ebp - 0x24], 2
cmp word [ebp - 0x30], 0
jne 0x430448
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x58]
sar eax, 1
mov dword [ebp - 0xb4], eax
mov ecx, dword [ebp - 0xb4]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
add eax, 2
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004fe866
add esp, 4
mov dword [ebp - 0x104], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x1c], eax
push 0
mov ecx, dword [ebp + 0xc]
call fcn.004288a0
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 2
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call fcn.005009eb
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov word [edx + ecx*2], ax
xor eax, eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
mov word [edx + ecx*2 + 2], ax
movzx eax, byte [0x59d188]
test eax, eax
je 0x4305c4
lea ecx, [ebp - 0x2c]
call fcn.0042a230
mov dword [ebp - 4], 8
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
push str.pszFrom___s__pszTo___s_
lea edx, [ebp - 0x2c]
push edx
call fcn.0042a490
add esp, 0x10
push 0x56285c
lea ecx, [ebp - 0x34]
call fcn.00428940
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14c]
call fcn.0042a230
mov dword [ebp - 0xbc], eax
mov eax, dword [ebp - 0xbc]
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x12c]
push edx
lea eax, [ebp - 0xcc]
push eax
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0xc4], eax
mov ecx, dword [ebp - 0xc4]
mov dword [ebp - 0x10c], ecx
mov byte [ebp - 4], 0xb
push 0
mov edx, dword [ebp - 0x10c]
push edx
lea eax, [ebp - 0x34]
push eax
call fcn.0042b420
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0xcc]
call fcn.00428a40
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x14c]
call fcn.00428a40
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00428a40
mov dword [ebp - 0x16c], 0
mov dword [ebp - 0x168], 2
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x160], edx
mov eax, 0x654
mov word [ebp - 0x15c], ax
mov dword [ebp - 0x15a], 0
mov dword [ebp - 0x152], 0
mov dword [ebp - 0x156], 0
lea ecx, [ebp - 0x16c]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x18], 0
je 0x430649
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0xd4], edx
mov eax, dword [ebp - 0xd4]
push eax
call fcn.004fe861
add esp, 4
mov dword [ebp - 0x18], 0
cmp dword [ebp - 0x1c], 0
je 0x430668
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x5c], ecx
mov edx, dword [ebp - 0x5c]
push edx
call fcn.004fe861
add esp, 4
mov dword [ebp - 0x1c], 0
cmp dword [ebp - 0x28], 0
jne 0x430677
mov dword [ebp - 0x50], 1
jmp 0x43067e
mov dword [ebp - 0x50], 0
mov al, byte [ebp - 0x50]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x43098b
push str._error
lea ecx, [ebp - 0x4c]
call fcn.00428940
mov dword [ebp - 4], 0xc
push str._to
lea ecx, [ebp - 0x44]
call fcn.00428940
mov byte [ebp - 4], 0xd
push str.SHFileOperation_from
lea ecx, [ebp - 0x3c]
call fcn.004289c0
mov byte [ebp - 4], 0xe
push str.CopyDirectory
lea ecx, [ebp - 0x38]
call fcn.00428940
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x100]
call fcn.0042a230
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x68], edx
mov byte [ebp - 4], 0x10
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp - 0x68]
push ecx
lea edx, [ebp - 0xf8]
push edx
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov byte [ebp - 4], 0x11
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x78]
push edx
lea eax, [ebp - 0xf0]
push eax
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x80]
mov dword [ebp - 0x88], ecx
mov byte [ebp - 4], 0x12
lea edx, [ebp - 0x44]
push edx
mov eax, dword [ebp - 0x88]
push eax
lea ecx, [ebp - 0xe8]
push ecx
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x90], eax
mov edx, dword [ebp - 0x90]
mov dword [ebp - 0x98], edx
mov byte [ebp - 4], 0x13
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x98]
push ecx
lea edx, [ebp - 0xe0]
push edx
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0xa0], eax
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xa8], eax
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0xa8]
push edx
lea eax, [ebp - 0xd8]
push eax
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0xb0], eax
mov ecx, dword [ebp - 0xb0]
mov dword [ebp - 0xb8], ecx
mov byte [ebp - 4], 0x15
mov edx, dword [ebp - 0x28]
push edx
mov eax, dword [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xd0]
push ecx
call fcn.0042a8b0
add esp, 0xc
mov dword [ebp - 0xc0], eax
mov edx, dword [ebp - 0xc0]
mov dword [ebp - 0xc8], edx
mov byte [ebp - 4], 0x16
push 2
mov eax, dword [ebp - 0xc8]
push eax
lea ecx, [ebp - 0x38]
push ecx
call fcn.0042b420
add esp, 0xc
mov byte [ebp - 4], 0x15
lea ecx, [ebp - 0xd0]
call fcn.00428a40
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0xd8]
call fcn.00428a40
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0xe0]
call fcn.00428a40
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0xe8]
call fcn.00428a40
mov byte [ebp - 4], 0x11
lea ecx, [ebp - 0xf0]
call fcn.00428a40
mov byte [ebp - 4], 0x10
lea ecx, [ebp - 0xf8]
call fcn.00428a40
mov byte [ebp - 4], 0xf
lea ecx, [ebp - 0x100]
call fcn.00428a40
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x38]
call fcn.00428a40
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x3c]
call fcn.00428a40
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x44]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00428a40
push str.CopyDirectory_SHFileOperation_
lea ecx, [ebp - 0x54]
call fcn.00428940
mov dword [ebp - 4], 0x17
lea ecx, [ebp - 0x148]
call fcn.0042a230
mov dword [ebp - 0x108], eax
mov edx, dword [ebp - 0x108]
mov dword [ebp - 0x110], edx
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x54]
push eax
mov ecx, dword [ebp - 0x110]
push ecx
lea edx, [ebp - 0x140]
push edx
call fcn.0042a940
add esp, 0xc
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 0x19
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x120]
push edx
lea eax, [ebp - 0x138]
push eax
call fcn.0042a8b0
add esp, 0xc
mov dword [ebp - 0x128], eax
mov ecx, dword [ebp - 0x128]
mov dword [ebp - 0x130], ecx
mov byte [ebp - 4], 0x1a
mov edx, dword [ebp - 0x130]
push edx
mov ecx, dword [ebp + 0x10]
call fcn.0042d650
mov byte [ebp - 4], 0x19
lea ecx, [ebp - 0x138]
call fcn.00428a40
mov byte [ebp - 4], 0x18
lea ecx, [ebp - 0x140]
call fcn.00428a40
mov byte [ebp - 4], 0x17
lea ecx, [ebp - 0x148]
call fcn.00428a40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x54]
call fcn.00428a40
mov al, byte [ebp - 0xd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret