Function at 0x404f54
Capabilities:
Copy file

Disassembly:
push 0x128
mov eax, 0x427d81
call fcn.004162d9
lea ecx, [ebp - 0x128]
call fcn.0040cd22
xor esi, esi
mov dword [ebp - 4], esi
lea ecx, [ebp - 0x11c]
call fcn.0040cd22
mov byte [ebp - 4], 1
mov ecx, dword [0x43c180]
mov eax, dword [ecx]
mov dword [ebp - 0x120], esi
mov dword [ebp - 0x114], esi
call dword [eax + 0x94]
mov edx, dword [eax]
push 0x80000168
push 0x168
mov ecx, eax
call dword [edx + 4]
push eax
call fcn.00402199
mov ebx, eax
pop ecx
pop ecx
cmp ebx, esi
jne 0x40319a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
jmp 0x4034b0
call fcn.0040e9f8
mov edx, dword [ebx]
push eax
mov ecx, ebx
call dword [edx]
mov esi, dword [ebx]
push 0x1a4
push 0x42b8d8
call fcn.004087f7
pop ecx
push eax
mov ecx, ebx
call dword [esi + 0x50]
mov edi, eax
mov dword [ebp - 0x134], edi
test edi, edi
jne 0x4031db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x114], eax
jmp 0x4034c9
push 0x100
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, dword [edi]
push 0x42b8c0
call fcn.004087f7
pop ecx
push eax
lea eax, [ebp - 0x130]
push eax
mov ecx, edi
call dword [esi + 4]
mov byte [ebp - 4], 2
push eax
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
call dword [eax + 0x10]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.0040d56e
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.004159db
pop ecx
pop ecx
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
call dword [eax + 0x10]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.0040d56e
xor edi, edi
push edi
mov esi, str..exe
push esi
lea ecx, [ebp - 0x128]
call fcn.0040cd2f
test eax, eax
jns 0x403288
push esi
lea ecx, [ebp - 0x128]
call fcn.0040de24
mov eax, dword [ebp - 0x128]
push edi
push edi
lea ecx, [ebp - 0x128]
call dword [eax + 4]
push eax
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
call dword [eax + 4]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.00415c76
add esp, 0x14
mov byte [ebp - 4], 4
push eax
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
call dword [eax + 0x10]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.0040d56e
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
call dword [eax + 4]
push eax
lea eax, [ebp - 0x130]
push eax
call fcn.0041597b
pop ecx
pop ecx
mov byte [ebp - 4], 5
push eax
mov eax, dword [ebp - 0x128]
lea ecx, [ebp - 0x128]
call dword [eax + 0x10]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x130]
call fcn.0040d56e
mov eax, dword [ebp - 0x11c]
push edi
lea ecx, [ebp - 0x11c]
call dword [eax + 4]
push eax
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, edi
jne 0x403368
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
call dword [eax + 4]
push eax
call fcn.00415ad0
pop ecx
test al, al
jne 0x403368
mov dword [ebp - 0x114], 1
jmp 0x4034b0
mov ecx, dword [0x43c180]
mov eax, dword [ecx]
call dword [eax + 0x94]
mov edx, dword [eax]
push 0x8000014b
push 0x14b
mov ecx, eax
call dword [edx + 4]
push eax
call fcn.00402199
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x4033a4
mov dword [ebp - 0x114], 2
jmp 0x4034b0
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 8]
mov eax, dword [edi]
push 0xc
mov ecx, edi
call dword [eax + 0x1c]
test eax, eax
jne 0x4033c8
mov dword [ebp - 0x114], 3
jmp 0x403486
mov edx, dword [eax]
push 2
mov ecx, eax
call dword [edx + 0x50]
mov esi, eax
test esi, esi
jne 0x4033e6
mov dword [ebp - 0x114], 4
jmp 0x403486
mov eax, dword [esi]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x11c]
lea ecx, [ebp - 0x11c]
call dword [eax + 4]
push eax
mov eax, dword [ebp - 0x120]
mov ecx, esi
call dword [eax + 0x18]
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 0x30]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x20]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xc]
push 1
push ecx
push ecx
mov esi, eax
lea eax, [ebp - 0x128]
mov ecx, esp
mov dword [ebp - 0x12c], esp
push eax
mov dword [ebp - 0x120], esi
call fcn.0040d433
mov byte [ebp - 4], 6
mov esi, dword [esi]
push 0x42b8c0
call fcn.004087f7
pop ecx
push eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x120]
call dword [esi + 0x18]
push dword [ebp - 0x120]
mov esi, dword [ebx]
push 0x42b8d8
call fcn.004087f7
pop ecx
push eax
mov ecx, ebx
call dword [esi + 0x58]
test al, al
jne 0x403486
mov dword [ebp - 0x114], 5
mov eax, dword [edi + 4]
mov eax, dword [eax + 4]
lea edi, [eax + edi + 4]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x10]
mov eax, dword [ebp - 0x120]
test eax, eax
je 0x4034b0
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea ecx, [ecx + eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov eax, dword [ebp - 0x134]
test eax, eax
je 0x4034c9
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 4]
lea ecx, [ecx + eax + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
test ebx, ebx
je 0x4034dc
mov eax, dword [ebx + 4]
mov eax, dword [eax + 4]
lea ecx, [eax + ebx + 4]
mov eax, dword [ecx]
call dword [eax + 0x10]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x11c]
call fcn.0040d56e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.0040d56e
mov eax, dword [ebp - 0x114]
call fcn.0041635c
ret
push edi
push 0x23
push 4
mov edi, ecx
call fcn.00409a80
pop ecx
pop ecx
test al, al
je 0x404f91
push esi
push 0x42bff0
call fcn.00408be0
mov esi, eax
push esi
push 0x65d
push 0xd2
push 0x23
push 4
call fcn.004094a0
push esi
call fcn.004141bd
add esp, 0x1c
pop esi
call fcn.00406ec0
call fcn.00401640
mov ecx, edi
pop edi
jmp 0x403122