Function at 0x4761b8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x4761c0
push ecx
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x476431
push dword fs:[eax]
mov dword fs:[eax], esp
add edi, 0xfffffff7
cmp edi, 0
jbe 0x4761ea
call fcn.00403ea0
add edi, 9
mov eax, edi
shl eax, 3
lea ebx, [esi + eax*8 + 0x178]
mov eax, edi
sub eax, 9
jne 0x476409
cmp dword [ebx + 0x1c], 0
jne 0x4762ae
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x68]
mov edx, 0xff
call fcn.00421f90
push 0x476448
push dword [ebx]
push 0x47647c
push 0x476490
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00405044
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0x2c]
call fcn.00442044
cmp dword [ebp - 0x10], 0
je 0x476257
xor edx, edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebx + 0x24]
cmp byte [eax + 0x57], 0
je 0x476273
mov eax, dword [ebx + 0x34]
cmp byte [eax + 0x57], 0
je 0x476273
mov edx, dword [ebx + 0x34]
mov eax, esi
call fcn.0045ce8c
mov eax, dword [esi + 0x2f0]
mov edx, dword [eax + 0x26c]
cmp edx, dword [esi + 0x2f8]
jne 0x476409
mov edx, dword [ebx + 0x24]
call fcn.0046aa28
mov eax, dword [ebx + 0x34]
cmp byte [eax + 0x57], 0
je 0x476409
mov edx, eax
mov eax, esi
call fcn.0045ce8c
jmp 0x476409
mov eax, dword [ebx + 0x34]
test eax, eax
je 0x4762bf
mov edx, 0x4764d4
call fcn.00442044
mov edx, dword [ebx + 0x1c]
mov eax, dword [ebx + 0x28]
call fcn.00442044
mov eax, dword [ebx + 0x2c]
mov eax, dword [eax + 0x68]
xor edx, edx
call fcn.00421f90
push 0x4764e4
push dword [ebx]
push 0x47652c
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.00405044
mov edx, dword [ebp - 0x18]
mov eax, dword [ebx + 0x2c]
call fcn.00442044
mov eax, dword [ebx + 0x24]
cmp byte [eax + 0x57], 0
je 0x476317
mov eax, dword [ebx + 0x34]
cmp byte [eax + 0x57], 0
je 0x476317
mov edx, dword [ebx + 0x34]
mov eax, esi
call fcn.0045ce8c
sub edi, 9
jne 0x476409
lea edx, [ebp - 4]
mov eax, dword [ebx + 0x1c]
call fcn.004099f8
lea eax, [ebp - 0x1c]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
call fcn.00404fd0
mov eax, dword [ebp - 0x1c]
call fcn.004096c0
test al, al
jne 0x47637d
push 0
lea eax, [ebp - 0x20]
mov ecx, dword [ebx + 0xc]
mov edx, dword [ebp - 4]
call fcn.00404fd0
mov eax, dword [ebp - 0x20]
call fcn.0040517c
push eax
lea eax, [ebp - 0x24]
mov ecx, dword [ebx + 0xc]
mov edx, dword [esi + 0x39c]
call fcn.00404fd0
mov eax, dword [ebp - 0x24]
call fcn.0040517c
push eax
call sub.kernel32.dll_CopyFileA
lea ecx, [ebp - 8]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004753b8
lea eax, [ebp - 0x28]
mov ecx, 0x476538
mov edx, dword [ebp - 4]
call fcn.00404fd0
mov eax, dword [ebp - 0x28]
call fcn.00472d18
test eax, eax
jne 0x4763d5
push 0x47654c
push dword [ebx + 4]
push dword [ebx + 8]
lea eax, [ebp - 0x2c]
mov edx, 3
call fcn.00405044
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [esi + 0x3b4]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00475ce8
jmp 0x476409
lea edx, [ebp - 0x30]
mov eax, dword [esi + 0x3b0]
call fcn.00470b50
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 8]
call fcn.004050c8
je 0x476409
lea edx, [ebp - 0x34]
mov eax, dword [esi + 0x3b0]
call fcn.00470b50
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
call fcn.00475610
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x476438
lea eax, [ebp - 0x34]
mov edx, 9
call fcn.00404cf0
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404cf0
ret