Function at 0x494b10
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x35
push 0
push 0
dec ecx
jne 0x494b19
push ecx
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404fe8
mov eax, dword [ebp - 8]
call fcn.00404fe8
lea eax, [ebp - 0x178]
mov edx, dword [0x4085dc]
call fcn.0040580c
xor eax, eax
push ebp
push 0x494e6b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x17c]
mov eax, dword [ebp - 4]
call fcn.0040ec8c
mov edx, dword [ebp - 0x17c]
lea eax, [ebp - 4]
call fcn.00404bc0
lea edx, [ebp - 0x180]
mov eax, dword [ebp - 8]
call fcn.0040ec8c
mov edx, dword [ebp - 0x180]
lea eax, [ebp - 8]
call fcn.00404bc0
mov al, byte [0x494e7c]
push eax
lea eax, [ebp - 0x14]
push eax
lea edx, [ebp - 0x184]
mov eax, dword [esi + 0xc]
call fcn.0040ec8c
mov eax, dword [ebp - 0x184]
push eax
lea edx, [ebp - 0x188]
mov eax, dword [esi + 0x10]
call fcn.0040ec8c
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 4]
pop ecx
call fcn.0040f50c
push 0x494e88
push dword [ebp - 8]
push 0x494ea4
lea eax, [ebp - 0x18c]
mov edx, 3
call fcn.00404eb8
mov eax, dword [ebp - 0x18c]
push eax
call fcn.00461fb8
pop edx
call fcn.00462024
mov dl, 1
mov eax, dword [0x417a64]
call fcn.00403d64
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x494e13
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x190]
mov ecx, 0x494eb0
mov edx, dword [ebp - 4]
call fcn.00404e44
mov eax, dword [ebp - 0x190]
lea ecx, [ebp - 0x178]
mov edx, 0x3f
call fcn.0040a2f4
test eax, eax
jne 0x494dfd
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 0x16c]
call fcn.00404bc0
mov eax, dword [ebp - 0xc]
mov edx, 0x494ebc
call fcn.00404f44
je 0x494d69
mov eax, dword [ebp - 0xc]
mov edx, 0x494ec8
call fcn.00404f44
je 0x494d69
test byte [ebp - 0x170], 0x10
je 0x494c9c
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x494d69
mov edx, 0x494ed4
mov eax, dword [ebp - 0xc]
call fcn.0045c508
test al, al
je 0x494d69
lea eax, [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00404e44
mov eax, dword [ebp - 0x1c]
call fcn.0040a114
test al, al
je 0x494ced
lea eax, [ebp - 0x194]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404e44
mov edx, dword [ebp - 0x194]
mov eax, esi
call fcn.004957ec
test al, al
je 0x494d69
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
call fcn.00404e44
lea edx, [ebp - 0x198]
mov eax, dword [ebp - 0x18]
call fcn.0040a4dc
mov eax, dword [ebp - 0x198]
call fcn.0040a124
test al, al
jne 0x494d31
lea edx, [ebp - 0x19c]
mov eax, dword [ebp - 0x18]
call fcn.0040a4dc
mov eax, dword [ebp - 0x19c]
call fcn.0040a148
push 0
mov eax, dword [ebp - 0x18]
call fcn.00404ff8
push eax
lea eax, [ebp - 0x1a0]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404e44
mov eax, dword [ebp - 0x1a0]
call fcn.00404ff8
push eax
call sub.kernel32.dll_CopyFileA
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.004928dc
lea eax, [ebp - 0x178]
call fcn.0040a344
test eax, eax
je 0x494c4f
lea eax, [ebp - 0x178]
call fcn.0040a368
mov eax, dword [ebp - 0x10]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x494dfd
inc eax
mov dword [ebp - 0x20], eax
xor ebx, ebx
lea ecx, [ebp - 0x1a8]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x1a8]
lea eax, [ebp - 0x1a4]
mov edx, dword [ebp - 8]
call fcn.00404e44
mov eax, dword [ebp - 0x1a4]
push eax
lea ecx, [ebp - 0x1b0]
mov edx, ebx
mov eax, dword [ebp - 0x10]
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x1b0]
lea eax, [ebp - 0x1ac]
mov edx, dword [ebp - 4]
call fcn.00404e44
mov edx, dword [ebp - 0x1ac]
mov eax, esi
pop ecx
call fcn.00494b10
inc ebx
dec dword [ebp - 0x20]
jne 0x494d9a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x494e1a
mov eax, dword [ebp - 0x10]
call fcn.00403d94
ret