Function at 0x46ae10
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x2e
push 0
push 0
dec ecx
jne 0x46ae18
push ebx
push esi
mov esi, eax
mov ebx, 0x46fbf8
xor eax, eax
push ebp
push 0x46b9b9
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.0046aa28
lea eax, [ebp - 4]
mov ecx, 0x46b9d0
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 4]
call fcn.00408648
test al, al
jne 0x46aed1
push 0x41
mov ecx, 0x46b9e0
mov edx, 0x46b9e8
mov eax, dword [0x46e9d4]
mov eax, dword [eax]
call fcn.0045515c
dec eax
je 0x46ae7d
mov eax, ebx
call fcn.00404004
jmp 0x46b986
mov eax, dword [esi + 0x304]
add eax, 0x78
call fcn.00404004
mov eax, ebx
call fcn.00404004
mov eax, dword [esi + 0x304]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x46b986
lea edx, [ebp - 0xc]
mov eax, dword [esi + 0x304]
call fcn.0042aff8
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
call fcn.004086fc
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.00404058
xor edx, edx
mov eax, esi
call fcn.0046ae10
cmp dword [ebx], 0
je 0x46b986
xor edx, edx
mov eax, dword [esi + 0x308]
mov ecx, dword [eax]
call dword [ecx + 0x64]
xor edx, edx
mov eax, dword [esi + 0x30c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
push ebx
mov eax, dword [ebx]
call fcn.004042c4
mov ecx, eax
dec ecx
mov edx, 1
mov eax, dword [ebx]
call fcn.00404524
push 0
lea eax, [ebp - 0x10]
mov ecx, 0x46ba2c
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x10]
call fcn.004044c4
push eax
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.004086fc
lea eax, [ebp - 0x14]
mov edx, 0x46ba40
call fcn.004042cc
mov eax, dword [ebp - 0x14]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x1c]
mov ecx, 0x46ba58
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x1c]
call fcn.004044c4
push eax
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.004086fc
lea eax, [ebp - 0x20]
mov edx, 0x46ba74
call fcn.004042cc
mov eax, dword [ebp - 0x20]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x28]
mov ecx, 0x46ba94
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x28]
call fcn.004044c4
push eax
lea edx, [ebp - 0x30]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004086fc
lea eax, [ebp - 0x2c]
mov edx, 0x46bab0
call fcn.004042cc
mov eax, dword [ebp - 0x2c]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x34]
mov ecx, 0x46bad0
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x34]
call fcn.004044c4
push eax
lea edx, [ebp - 0x3c]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.004086fc
lea eax, [ebp - 0x38]
mov edx, 0x46baec
call fcn.004042cc
mov eax, dword [ebp - 0x38]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x40]
mov ecx, 0x46bb0c
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x40]
call fcn.004044c4
push eax
lea edx, [ebp - 0x48]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.004086fc
lea eax, [ebp - 0x44]
mov edx, 0x46bb28
call fcn.004042cc
mov eax, dword [ebp - 0x44]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x4c]
mov ecx, 0x46bb48
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x4c]
call fcn.004044c4
push eax
lea edx, [ebp - 0x54]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x54]
lea edx, [ebp - 0x50]
call fcn.004086fc
lea eax, [ebp - 0x50]
mov edx, 0x46bb64
call fcn.004042cc
mov eax, dword [ebp - 0x50]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x58]
mov ecx, 0x46bb84
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x58]
call fcn.004044c4
push eax
lea edx, [ebp - 0x60]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x60]
lea edx, [ebp - 0x5c]
call fcn.004086fc
lea eax, [ebp - 0x5c]
mov edx, 0x46bba0
call fcn.004042cc
mov eax, dword [ebp - 0x5c]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x64]
mov ecx, 0x46bbc0
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x64]
call fcn.004044c4
push eax
lea edx, [ebp - 0x6c]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x6c]
lea edx, [ebp - 0x68]
call fcn.004086fc
lea eax, [ebp - 0x68]
mov edx, 0x46bbe4
call fcn.004042cc
mov eax, dword [ebp - 0x68]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x70]
mov ecx, 0x46bc0c
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x70]
call fcn.004044c4
push eax
lea edx, [ebp - 0x78]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x78]
lea edx, [ebp - 0x74]
call fcn.004086fc
lea eax, [ebp - 0x74]
mov edx, 0x46bc30
call fcn.004042cc
mov eax, dword [ebp - 0x74]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x7c]
mov ecx, 0x46bc58
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x7c]
call fcn.004044c4
push eax
lea edx, [ebp - 0x84]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x84]
lea edx, [ebp - 0x80]
call fcn.004086fc
lea eax, [ebp - 0x80]
mov edx, 0x46bc7c
call fcn.004042cc
mov eax, dword [ebp - 0x80]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x88]
mov ecx, 0x46bca4
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x88]
call fcn.004044c4
push eax
lea edx, [ebp - 0x90]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x90]
lea edx, [ebp - 0x8c]
call fcn.004086fc
lea eax, [ebp - 0x8c]
mov edx, 0x46bcc8
call fcn.004042cc
mov eax, dword [ebp - 0x8c]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x94]
mov ecx, 0x46bcf0
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x94]
call fcn.004044c4
push eax
lea edx, [ebp - 0x9c]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x9c]
lea edx, [ebp - 0x98]
call fcn.004086fc
lea eax, [ebp - 0x98]
mov edx, 0x46bd0c
call fcn.004042cc
mov eax, dword [ebp - 0x98]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xa0]
mov ecx, 0x46bd2c
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0xa0]
call fcn.004044c4
push eax
lea edx, [ebp - 0xa8]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0xa8]
lea edx, [ebp - 0xa4]
call fcn.004086fc
lea eax, [ebp - 0xa4]
mov edx, 0x46bd48
call fcn.004042cc
mov eax, dword [ebp - 0xa4]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xac]
mov ecx, 0x46bd68
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0xac]
call fcn.004044c4
push eax
lea edx, [ebp - 0xb4]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0xb4]
lea edx, [ebp - 0xb0]
call fcn.004086fc
lea eax, [ebp - 0xb0]
mov edx, 0x46bd88
call fcn.004042cc
mov eax, dword [ebp - 0xb0]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xb8]
mov ecx, 0x46bdac
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0xb8]
call fcn.004044c4
push eax
lea edx, [ebp - 0xc0]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0xc0]
lea edx, [ebp - 0xbc]
call fcn.004086fc
lea eax, [ebp - 0xbc]
mov edx, 0x46bdcc
call fcn.004042cc
mov eax, dword [ebp - 0xbc]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xc4]
mov ecx, 0x46bdf0
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0xc4]
call fcn.004044c4
push eax
lea edx, [ebp - 0xcc]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0xcc]
lea edx, [ebp - 0xc8]
call fcn.004086fc
lea eax, [ebp - 0xc8]
mov edx, 0x46be0c
call fcn.004042cc
mov eax, dword [ebp - 0xc8]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xd0]
mov ecx, 0x46be2c
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0xd0]
call fcn.004044c4
push eax
lea edx, [ebp - 0xd8]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0xd8]
lea edx, [ebp - 0xd4]
call fcn.004086fc
lea eax, [ebp - 0xd4]
mov edx, 0x46be4c
call fcn.004042cc
mov eax, dword [ebp - 0xd4]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xdc]
mov ecx, 0x46be70
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0xdc]
call fcn.004044c4
push eax
lea edx, [ebp - 0xe4]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0xe4]
lea edx, [ebp - 0xe0]
call fcn.004086fc
lea eax, [ebp - 0xe0]
mov edx, 0x46be8c
call fcn.004042cc
mov eax, dword [ebp - 0xe0]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xe8]
mov ecx, 0x46beac
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0xe8]
call fcn.004044c4
push eax
lea edx, [ebp - 0xf0]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0xf0]
lea edx, [ebp - 0xec]
call fcn.004086fc
lea eax, [ebp - 0xec]
mov edx, 0x46becc
call fcn.004042cc
mov eax, dword [ebp - 0xec]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0xf4]
mov ecx, 0x46bef0
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0xf4]
call fcn.004044c4
push eax
lea edx, [ebp - 0xfc]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 0xf8]
call fcn.004086fc
lea eax, [ebp - 0xf8]
mov edx, 0x46bf0c
call fcn.004042cc
mov eax, dword [ebp - 0xf8]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x100]
mov ecx, 0x46bf2c
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x100]
call fcn.004044c4
push eax
lea edx, [ebp - 0x108]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x108]
lea edx, [ebp - 0x104]
call fcn.004086fc
lea eax, [ebp - 0x104]
mov edx, 0x46bf48
call fcn.004042cc
mov eax, dword [ebp - 0x104]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x10c]
mov ecx, 0x46bf68
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x10c]
call fcn.004044c4
push eax
lea edx, [ebp - 0x114]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x114]
lea edx, [ebp - 0x110]
call fcn.004086fc
lea eax, [ebp - 0x110]
mov edx, 0x46bf88
call fcn.004042cc
mov eax, dword [ebp - 0x110]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x118]
mov ecx, 0x46bfac
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x118]
call fcn.004044c4
push eax
lea edx, [ebp - 0x120]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x11c]
call fcn.004086fc
lea eax, [ebp - 0x11c]
mov edx, 0x46bfcc
call fcn.004042cc
mov eax, dword [ebp - 0x11c]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x124]
mov ecx, 0x46bff0
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x124]
call fcn.004044c4
push eax
lea edx, [ebp - 0x12c]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x12c]
lea edx, [ebp - 0x128]
call fcn.004086fc
lea eax, [ebp - 0x128]
mov edx, 0x46c00c
call fcn.004042cc
mov eax, dword [ebp - 0x128]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x130]
mov ecx, 0x46c02c
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x130]
call fcn.004044c4
push eax
lea edx, [ebp - 0x138]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
call fcn.004086fc
lea eax, [ebp - 0x134]
mov edx, 0x46c048
call fcn.004042cc
mov eax, dword [ebp - 0x134]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x13c]
mov ecx, 0x46c068
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x13c]
call fcn.004044c4
push eax
lea edx, [ebp - 0x144]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x144]
lea edx, [ebp - 0x140]
call fcn.004086fc
lea eax, [ebp - 0x140]
mov edx, 0x46c084
call fcn.004042cc
mov eax, dword [ebp - 0x140]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x148]
mov ecx, 0x46c0a4
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x148]
call fcn.004044c4
push eax
lea edx, [ebp - 0x150]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x150]
lea edx, [ebp - 0x14c]
call fcn.004086fc
lea eax, [ebp - 0x14c]
mov edx, 0x46c0c0
call fcn.004042cc
mov eax, dword [ebp - 0x14c]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x154]
mov ecx, 0x46c0e0
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x154]
call fcn.004044c4
push eax
lea edx, [ebp - 0x15c]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0x158]
call fcn.004086fc
lea eax, [ebp - 0x158]
mov edx, 0x46c0f8
call fcn.004042cc
mov eax, dword [ebp - 0x158]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x160]
mov ecx, 0x46c114
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x160]
call fcn.004044c4
push eax
lea edx, [ebp - 0x168]
xor eax, eax
call fcn.00402a3c
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.004086fc
lea eax, [ebp - 0x164]
mov edx, 0x46c12c
call fcn.004042cc
mov eax, dword [ebp - 0x164]
call fcn.004044c4
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x16c]
mov ecx, 0x46ba2c
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x16c]
xor ecx, ecx
mov edx, 0x46c148
call fcn.0046ab50
lea eax, [ebp - 0x170]
mov ecx, 0x46ba2c
mov edx, dword [ebx]
call fcn.00404310
mov eax, dword [ebp - 0x170]
mov ecx, 1
mov edx, 0x46c148
call fcn.0046ab50
push 0x40
mov ecx, 0x46c15c
mov edx, 0x46c168
mov eax, dword [0x46e9d4]
mov eax, dword [eax]
call fcn.0045515c
mov dl, 1
mov eax, dword [esi + 0x308]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov dl, 1
mov eax, dword [esi + 0x30c]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, esi
call fcn.004518a4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46b9c0
lea eax, [ebp - 0x170]
mov edx, 0x59
call fcn.00404028
lea eax, [ebp - 0xc]
call fcn.00404004
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404028
ret