Function at 0x474fa8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x48
push 0
push 0
dec ecx
jne 0x474fb0
push ecx
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0x226]
xor eax, eax
push ebp
push 0x4752b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00405680
mov dl, 1
mov eax, dword [0x417f58]
call fcn.0041ce04
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x475287
xor edx, edx
push ebp
push 0x475280
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, edi
xor ecx, ecx
mov edx, 0x208
call fcn.004035c0
lea eax, [ebp - 4]
mov ecx, dword [0x479c1c]
mov edx, 0x4752cc
call fcn.004059b8
mov eax, dword [ebp - 4]
test eax, eax
je 0x475040
mov edx, eax
sub edx, 0xa
cmp word [edx], 2
je 0x475040
lea eax, [ebp - 4]
mov edx, dword [ebp - 4]
call fcn.00404fec
mov ebx, eax
test ebx, ebx
je 0x47504b
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.004056b8
mov ecx, ebx
add ecx, ecx
mov edx, edi
call fcn.00403164
mov ebx, 0x1a
lea eax, [ebp - 0x22c]
mov edx, edi
mov ecx, 0x105
call fcn.004057e4
mov eax, dword [ebp - 0x22c]
call fcn.0040b37c
test al, al
je 0x4750da
lea eax, [ebp - 0x14]
mov edx, edi
mov ecx, 0x105
call fcn.004057e4
push dword [ebp - 0x14]
push 0x4752e0
push dword [0x479c18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405a88
mov eax, dword [ebp - 0x14]
call fcn.0040b334
test al, al
je 0x4750da
lea eax, [ebp - 0x230]
mov edx, edi
mov ecx, 0x105
call fcn.004057e4
mov edx, dword [ebp - 0x230]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
movzx eax, byte [edi]
inc eax
mov word [edi], ax
dec ebx
jne 0x475063
mov dl, 1
mov eax, dword [0x471c48]
call fcn.0047296c
mov ebx, eax
test ebx, ebx
je 0x4751b8
lea ecx, [ebp - 0x18]
mov edx, 0x1e
mov eax, ebx
call fcn.00472494
lea edx, [ebp - 0x234]
mov eax, dword [ebp - 0x18]
call fcn.00410a5c
mov edx, dword [ebp - 0x234]
lea eax, [ebp - 0x18]
mov ecx, dword [0x479c1c]
call fcn.004059b8
lea edx, [ebp - 0x238]
mov eax, dword [ebp - 0x18]
call fcn.00410a5c
mov edx, dword [ebp - 0x238]
lea eax, [ebp - 0x18]
call fcn.00405680
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00474a44
mov eax, dword [ebp - 0x18]
call fcn.0040b37c
test al, al
je 0x4751b1
lea eax, [ebp - 0x14]
mov ecx, dword [0x479c18]
mov edx, dword [ebp - 0x18]
call fcn.004059b8
mov eax, dword [ebp - 0x14]
call fcn.0040b334
test al, al
je 0x475189
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x14]
mov ecx, dword [0x479c14]
mov edx, dword [ebp - 0x18]
call fcn.004059b8
mov eax, dword [ebp - 0x14]
call fcn.0040b334
test al, al
je 0x4751b1
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, ebx
call fcn.00403c8c
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x47526a
inc esi
xor ebx, ebx
lea ecx, [ebp - 8]
mov edx, ebx
mov eax, dword [ebp - 0x1c]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 8]
call fcn.0040b37c
test al, al
je 0x475262
lea edx, [ebp - 0x23c]
mov eax, dword [ebp - 8]
call fcn.00410a5c
push dword [ebp - 0x23c]
push 0x4752f0
lea eax, [ebp - 0x240]
call fcn.0046fc18
push dword [ebp - 0x240]
push 0x475314
lea eax, [ebp - 0xc]
mov edx, 4
call fcn.00405a88
push 0
mov eax, dword [ebp - 0xc]
call fcn.004056b8
push eax
lea edx, [ebp - 0x244]
xor eax, eax
call fcn.00403380
mov eax, dword [ebp - 0x244]
call fcn.004056b8
push eax
call sub.kernel32.dll_CopyFileW
test eax, eax
je 0x475262
push 1
xor ecx, ecx
mov edx, dword [0x479c48]
mov eax, dword [ebp - 0xc]
call fcn.00470d20
inc ebx
dec esi
jne 0x4751ce
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x475287
mov eax, dword [ebp - 0x1c]
call fcn.00403c8c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4752b9
lea eax, [ebp - 0x244]
mov edx, 7
call fcn.00405624
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.00405624
ret