Function at 0x406e94
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
push ebx
push esi
push edi
mov dword [ebp - 0x50], eax
mov eax, 0x4bc698
call fcn.00479eb8
mov word [ebp - 0x3c], 0x14
mov edx, 0x4ba3bf
lea eax, [ebp - 0xc]
call fcn.00488be4
inc dword [ebp - 0x30]
xor ecx, ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 4]
inc dword [ebp - 0x30]
lea edx, [ebp - 0xc]
mov eax, 0x4ea038
call fcn.00488e28
dec dword [ebp - 0x30]
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x3c], 8
mov word [ebp - 0x3c], 0x20
mov edx, str.iAdGameUrlEx.xml
lea eax, [ebp - 0x10]
call fcn.00488be4
inc dword [ebp - 0x30]
xor eax, eax
mov dword [ebp - 8], eax
mov eax, 0x4ea038
inc dword [ebp - 0x30]
lea edx, [ebp - 0x10]
lea ecx, [ebp - 8]
call fcn.00488e28
dec dword [ebp - 0x30]
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x3c], 8
mov eax, dword [ebp - 4]
call fcn.004334fc
test al, al
jne 0x406f85
push str.get_gamepro_fail_1
mov edx, dword [0x4ea064]
push edx
call fcn.0040f424
add esp, 8
xor eax, eax
push eax
dec dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x30]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x4072da
cmp dword [0x4e9f70], 0
jne 0x406fd5
push str.get_gamepro_fail_2
mov ecx, dword [0x4ea064]
push ecx
call fcn.0040f424
add esp, 8
xor eax, eax
push eax
dec dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x30]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
jmp 0x4072da
push 0
cmp dword [ebp - 8], 0
je 0x406fe2
mov ecx, dword [ebp - 8]
jmp 0x406fe7
mov ecx, 0x4ba404
push ecx
cmp dword [ebp - 4], 0
je 0x406ff3
mov eax, dword [ebp - 4]
jmp 0x406ff8
mov eax, 0x4ba403
push eax
call sub.KERNEL32.DLL_CopyFileA
mov dl, 1
mov eax, dword [0x4239dc]
call fcn.0040331c
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
call dword [edx + 0x44]
mov word [ebp - 0x3c], 0x2c
mov eax, dword [ebp - 8]
call fcn.004334fc
test al, al
je 0x407034
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x68]
jmp 0x40703f
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x54]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov word [ebp - 0x3c], 8
jmp 0x407052
mov eax, dword [ebp - 8]
call fcn.004334fc
test al, al
je 0x407066
mov eax, dword [ebp - 8]
call fcn.00488b2c
mov word [ebp - 0x3c], 8
xor esi, esi
jmp 0x407217
mov word [ebp - 0x3c], 0x44
xor eax, eax
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x14]
inc dword [ebp - 0x30]
mov edx, esi
mov eax, dword [ebp - 0x54]
mov ebx, dword [eax]
call dword [ebx + 0xc]
mov word [ebp - 0x3c], 0x38
cmp dword [ebp - 0x14], 0
sete al
and eax, 1
test al, al
je 0x4070b7
dec dword [ebp - 0x30]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
jmp 0x407216
push 0xa18
call fcn.00477a88
pop ecx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x407166
mov word [ebp - 0x3c], 0x5c
push 0x100
push 0
mov edx, dword [ebp - 0x18]
push edx
call fcn.004798f8
add esp, 0xc
push 0x400
push 0
mov ecx, dword [ebp - 0x18]
add ecx, 0x100
push ecx
call fcn.004798f8
add esp, 0xc
push 0x100
push 0
mov eax, dword [ebp - 0x18]
add eax, 0x518
push eax
call fcn.004798f8
add esp, 0xc
push 0x400
push 0
mov edx, dword [ebp - 0x18]
add edx, 0x618
push edx
call fcn.004798f8
add esp, 0xc
mov ecx, dword [ebp - 0x18]
xor eax, eax
mov dword [ecx + 0x500], eax
mov edx, dword [ebp - 0x18]
xor ecx, ecx
mov dword [edx + 0x504], ecx
mov eax, dword [ebp - 0x18]
xor edx, edx
mov dword [eax + 0x50c], edx
mov ecx, dword [ebp - 0x18]
mov byte [ecx + 0x508], 0
mov word [ebp - 0x3c], 0x50
mov ebx, dword [ebp - 0x18]
jmp 0x407169
mov ebx, dword [ebp - 0x18]
mov word [ebp - 0x3c], 0x38
mov word [ebp - 0x3c], 0x68
xor eax, eax
lea edx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
inc dword [ebp - 0x30]
call fcn.0048901c
cmp dword [ebp - 0x1c], 0
je 0x407193
mov edx, dword [ebp - 0x1c]
jmp 0x407198
mov edx, 0x4ba405
xor eax, eax
push esi
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, ebx
xchg edi, esi
mov edx, ecx
mov eax, edi
shr ecx, 2
lea eax, [ebp - 0x1c]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, 2
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop esi
dec dword [ebp - 0x30]
call fcn.00488dd0
mov word [ebp - 0x3c], 0x74
lea eax, [ebp - 0x20]
mov edx, ebx
call fcn.00488be4
inc dword [ebp - 0x30]
mov edx, dword [eax]
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x320]
mov ecx, ebx
mov ebx, dword [eax]
call dword [ebx + 0x3c]
dec dword [ebp - 0x30]
lea eax, [ebp - 0x20]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x30]
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00488dd0
mov word [ebp - 0x3c], 8
inc esi
mov eax, dword [ebp - 0x54]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp esi, eax
jle 0x407073
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x407250
mov eax, dword [ebx]
mov dword [ebp - 0x24], eax
mov word [ebp - 0x3c], 0x8c
mov edx, 3
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
call dword [ecx - 4]
mov word [ebp - 0x3c], 0x80
xor edx, edx
mov dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x50]
mov eax, dword [eax + 0x3e4]
cmp eax, 0x3ea
je 0x40726c
cmp eax, 0x3ec
jne 0x40727e
mov edx, dword [ebp - 0x50]
mov eax, dword [edx + 0x304]
mov dl, 1
call fcn.00466788
jmp 0x40729c
mov ecx, dword [ebp - 0x50]
mov eax, dword [ecx + 0x3e4]
cmp eax, 0x3e9
je 0x407295
cmp eax, 0x3eb
jne 0x40729c
push eax
call fcn.00418838
pop ecx
call fcn.0040360c
mov word [ebp - 0x3c], 8
mov dword [0x4e9f84], eax
mov al, 1
push eax
dec dword [ebp - 0x30]
lea eax, [ebp - 8]
mov edx, 2
call fcn.00488dd0
dec dword [ebp - 0x30]
lea eax, [ebp - 4]
mov edx, 2
call fcn.00488dd0
pop eax
mov edx, dword [ebp - 0x4c]
mov dword fs:[0], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret