Function at 0x639538
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 6
push 0
push 0
dec ecx
jne 0x639540
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x6399b7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0x2d8]
mov edx, dword [eax]
call dword [edx + 0xb4]
test al, al
je 0x6395c2
lea edx, [ebp - 0xc]
mov esi, dword [ebx + 0x2ec]
mov eax, esi
call fcn.00490074
mov eax, dword [ebp - 0xc]
lea ecx, [ebp - 8]
mov edx, 0x6399cc
call fcn.0040c5c8
mov edx, dword [ebp - 8]
mov eax, esi
call fcn.004900a4
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x2ec]
call fcn.00490074
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.0040c65c
mov eax, dword [ebp - 4]
call fcn.004f18d4
test al, al
jne 0x6395c2
mov eax, dword [ebp - 4]
call fcn.004f18f8
mov eax, dword [ebx + 0x2d4]
mov edx, dword [eax]
call dword [edx + 0xb4]
test al, al
je 0x63965e
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x2ec]
call fcn.00490074
mov eax, dword [ebp - 0x14]
call fcn.0040c3e0
test al, al
jne 0x63965e
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x58c]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x590]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x594]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x598]
push eax
lea eax, [ebp - 0x18]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov edx, dword [eax + 0x580]
mov ecx, dword [ebx + 0x308]
mov eax, 1
call fcn.00518c7c
mov eax, dword [ebx + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0xb0]
jmp 0x639968
cmp dword [ebx + 0x33c], 4
je 0x6396f8
mov eax, dword [ebx + 0x2d8]
mov edx, dword [eax]
call dword [edx + 0xb4]
test al, al
je 0x6396f8
mov eax, dword [ebx + 0x338]
call fcn.0040c3e0
test al, al
jne 0x6396f8
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x58c]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x590]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x594]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x598]
push eax
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov edx, dword [eax + 0x580]
mov ecx, dword [ebx + 0x30c]
mov eax, 1
call fcn.00518c7c
mov eax, dword [ebx + 0x2ec]
mov edx, dword [eax]
call dword [edx + 0xb0]
jmp 0x639968
mov eax, dword [ebx + 0x2d4]
mov edx, dword [eax]
call dword [edx + 0xb4]
test al, al
je 0x639728
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x2ec]
call fcn.00490074
mov edx, dword [ebp - 0x20]
lea eax, [ebx + 0x334]
call fcn.00404130
jmp 0x639755
lea eax, [ebx + 0x334]
mov edx, dword [ebx + 0x338]
call fcn.00404130
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x2ec]
call fcn.00490074
mov edx, dword [ebp - 0x24]
lea eax, [ebx + 0x338]
call fcn.00404130
mov eax, dword [ebx + 0x2d4]
mov edx, dword [eax]
call dword [edx + 0xb4]
test al, al
je 0x63981d
mov eax, dword [ebx + 0x33c]
cmp eax, 1
je 0x63977b
cmp eax, 3
jne 0x639784
mov eax, ebx
call fcn.0063b358
jmp 0x6397b8
sub eax, 2
je 0x639790
sub eax, 2
je 0x6397a5
jmp 0x6397b8
mov ecx, dword [ebx + 0x338]
mov edx, dword [ebx + 0x334]
mov eax, ebx
call fcn.00639fe4
jmp 0x6397b8
mov ecx, dword [ebx + 0x338]
mov edx, dword [ebx + 0x334]
mov eax, ebx
call fcn.0063adb8
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x58c]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x590]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x594]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x598]
push eax
lea eax, [ebp - 0x28]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov edx, dword [eax + 0x584]
mov ecx, dword [ebx + 0x314]
mov eax, 1
call fcn.00518c7c
mov byte [ebx + 0x32c], 1
jmp 0x639961
mov eax, dword [ebx + 0x338]
call fcn.0040c3e0
test al, al
je 0x6398cb
cmp dword [ebx + 0x33c], 4
je 0x63985a
push 0
mov eax, dword [ebx + 0x338]
call fcn.0040453c
push eax
mov eax, dword [ebx + 0x334]
call fcn.0040453c
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x63986d
mov ecx, dword [ebx + 0x338]
mov edx, dword [ebx + 0x334]
mov eax, ebx
call fcn.0063b024
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x58c]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x590]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x594]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x598]
push eax
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov edx, dword [eax + 0x584]
mov ecx, dword [ebx + 0x31c]
mov eax, 1
call fcn.00518c7c
jmp 0x639961
cmp dword [ebx + 0x33c], 4
je 0x6398f5
push 0
mov eax, dword [ebx + 0x338]
call fcn.0040453c
push eax
mov eax, dword [ebx + 0x334]
call fcn.0040453c
push eax
call sub.kernel32.dll_CopyFileA
jmp 0x639908
mov ecx, dword [ebx + 0x338]
mov edx, dword [ebx + 0x334]
mov eax, ebx
call fcn.0063b024
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x58c]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x590]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x594]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov eax, dword [eax + 0x598]
push eax
lea eax, [ebp - 0x30]
push eax
mov eax, dword [0x663c28]
mov eax, dword [eax]
mov edx, dword [eax + 0x584]
mov ecx, dword [ebx + 0x31c]
mov eax, 1
call fcn.00518c7c
mov eax, ebx
call fcn.004abfec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x6399be
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404100
lea eax, [ebp - 0x24]
mov edx, 2
call fcn.00404100
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404100
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00404100
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404100
ret