Function at 0x100063a0
Capabilities:
Get http content length
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009dbfb
mov eax, dword fs:[0]
push eax
mov eax, 0x1028
call fcn.1007a7d0
mov eax, dword [0x100b7bd0]
xor eax, esp
mov dword [esp + 0x1020], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b7bd0]
xor eax, esp
push eax
lea eax, [esp + 0x103c]
mov dword fs:[0], eax
mov esi, edx
mov eax, dword [esp + 0x104c]
mov ebp, dword [esp + 0x1054]
mov edi, dword [esp + 0x1050]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], ebp
je 0x100064cb
mov eax, dword [eax]
cmp eax, ebx
mov byte [esp + 0x15], bl
mov dword [esp + 0x1c], 4
mov dword [esp + 0x18], ebx
je 0x10006446
push ebx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x20]
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
setne al
cmp al, bl
jne 0x100064d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x100064c4
cmp esi, ebx
mov byte [esp + 0x15], 1
jbe 0x10006464
mov eax, esi
mov dword [esp + 0x18], eax
jmp 0x100064d6
mov eax, 0x3200000
mov dword [esp + 0x18], eax
cmp esi, ebx
jbe 0x10006475
cmp eax, esi
jne 0x100064e0
mov dword [esp + 0x24], vtable.GameMgr::GMFile.0
mov dword [esp + 0x28], 0xffffffff
push 3
mov dword [esp + 0x1048], ebx
mov ecx, edi
push 0x40000000
mov ebx, 2
lea edi, [esp + 0x2c]
call fcn.100296f0
test al, al
jne 0x100064f2
test ebp, ebp
je 0x100064b4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x2c], eax
lea esi, [esp + 0x24]
call fcn.100296c0
xor al, al
jmp 0x1000662a
cmp ebp, ebx
je 0x100064cb
mov dword [ebp + 0x2c], eax
xor al, al
jmp 0x1000662a
mov eax, dword [esp + 0x18]
cmp eax, ebx
jne 0x1000646d
cmp byte [esp + 0x15], bl
jne 0x1000646d
cmp ebp, ebx
je 0x100064eb
mov dword [ebp + 0x2c], 0xe0000006
xor al, al
jmp 0x1000662a
test ebp, ebp
mov byte [esp + 0x17], 0
je 0x10006506
mov edx, dword [esp + 0x18]
mov esi, ebp
mov dword [ebp + 8], edx
jmp 0x1000652a
push 0x30
mov byte [esp + 0x1b], 1
call fcn.10079665
mov esi, eax
add esp, 4
test esi, esi
je 0x10006526
mov eax, dword [esp + 0x18]
call fcn.10005030
jmp 0x10006528
xor eax, eax
mov esi, eax
mov eax, dword [esp + 0x18]
xor ebp, ebp
cmp dword [esi + 0xc], eax
mov byte [esp + 0x16], 1
jae 0x100065e8
mov edi, edi
mov eax, dword [esp + 0x30]
test eax, eax
je 0x10006559
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100065e8
mov bl, byte [esp + 0x15]
test bl, bl
mov edx, 0x1000
jne 0x10006573
mov eax, dword [esp + 0x18]
sub eax, dword [esi + 0xc]
cmp eax, edx
jae 0x10006573
mov edx, eax
mov eax, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
push ecx
call fcn.1002a030
mov edi, eax
cmp edi, 0xffffffff
je 0x100065ec
test edi, edi
jne 0x1000659f
test bl, bl
jne 0x100065ec
push 0xa
call sub.KERNEL32.dll_Sleep
add ebp, 1
cmp ebp, 3
ja 0x100065ec
mov eax, dword [esp + 0x28]
cmp eax, 0xffffffff
je 0x100065d5
push 0
lea edx, [esp + 0x20]
push edx
push edi
lea ecx, [esp + 0x40]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100065d5
cmp edi, dword [esp + 0x1c]
jne 0x100065d5
mov edx, dword [esi + 0xc]
cmp edx, dword [esp + 0x18]
jb 0x10006540
jmp 0x100065ec
mov edi, dword [esp + 0x20]
test edi, edi
je 0x10006608
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
jmp 0x10006608
mov bl, byte [esp + 0x15]
mov eax, dword [esp + 0x18]
cmp dword [esi + 0xc], eax
je 0x1000660d
test bl, bl
jne 0x1000660d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x10006608
mov dword [eax + 0x2c], 0xe0000006
mov byte [esp + 0x16], 0
cmp byte [esp + 0x17], 0
je 0x1000661d
push esi
call fcn.10079508
add esp, 4
lea esi, [esp + 0x24]
call fcn.100296c0
mov al, byte [esp + 0x16]
mov ecx, dword [esp + 0x103c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1020]
xor ecx, esp
call fcn.1007a1bc
add esp, 0x1034
ret