Function at 0x1001aae0
Capabilities:
Check http status code
Create http request
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x1004f20b
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov eax, dword [0x1007ff50]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
xor ebp, ebp
push ebp
push ebp
push ebp
push ebp
push ebp
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x18], esi
push 4
lea eax, [esp + 0x24]
push eax
push 2
push esi
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x30], 0xbb8
call dword [sym.imp.WININET.dll_InternetSetOptionW]
mov eax, dword [esp + 0x74]
cmp dword [eax + 0x18], 8
jb 0x1001ab4b
mov eax, dword [eax + 4]
jmp 0x1001ab4e
add eax, 4
mov ecx, dword [esp + 0x80]
push ecx
push 0xffffffffffffffff
push ebp
push eax
push esi
lea ecx, [esp + 0x3c]
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMInternetFile::constructor_void___wchar_t_const___wchar_t_const___unsigned_long_int__unsigned_long_int_]
mov edi, dword [sym.imp.K8Common.dll_public:_bool___thiscall_GameMgr::GMInternetFile::QueryInfo_unsigned_long_int__unsigned_long_int___unsigned_long_int__]
push ebp
lea edx, [esp + 0x28]
push edx
push 0x13
lea ecx, [esp + 0x34]
mov byte [esp + 0x78], 1
call edi
cmp dword [esp + 0x24], 0xc8
je 0x1001aba9
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMInternetFile::destructor_void_]
cmp esi, ebp
je 0x1001aba2
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x1001ad74
mov al, byte [ebx + 0x2a0]
test al, al
je 0x1001abd8
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMInternetFile::destructor_void_]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x1001abd1
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x1001ad74
push ebp
lea ecx, [esp + 0x18]
push ecx
push 5
lea ecx, [esp + 0x34]
mov byte [esp + 0x80], 0
mov dword [esp + 0x20], ebp
call edi
test al, al
jne 0x1001ac10
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x1001abb3
mov byte [esp + 0x74], 1
mov dword [esp + 0x14], 0xa00000
mov dl, byte [ebx + 0x2a0]
test dl, dl
jne 0x1001abb3
mov eax, dword [esp + 0x14]
cmp eax, ebp
jne 0x1001ac28
cmp byte [esp + 0x74], dl
je 0x1001abb3
mov edi, dword [esp + 0x78]
add eax, 1
push eax
mov ecx, edi
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMBuffer_unsigned_char_::SetCapacity_unsigned_int_]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ebp
call dword [sym.imp.KERNEL32.dll_GetTickCount]
fldz
fst qword [esp + 0x44]
mov dword [esp + 0x34], eax
fstp qword [esp + 0x54]
mov dword [esp + 0x38], eax
mov ecx, dword [esp + 0x14]
mov ebx, dword [sym.imp.K8Common.dll_public:_unsigned_char____thiscall_GameMgr::GMBuffer_unsigned_char_::data_void_]
add ecx, 1
push ecx
push ebp
mov ecx, edi
mov byte [esp + 0x74], 2
call ebx
push eax
call sub.MSVCR80.dll_memset
mov edx, dword [esp + 0x4c]
add esp, 0xc
cmp edx, dword [esp + 0x14]
jae 0x1001acf9
jmp 0x1001ac90
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 0x2a0]
test cl, cl
jne 0x1001acf9
cmp byte [esp + 0x74], cl
mov esi, dword [esp + 0x40]
mov eax, 0x1000
jne 0x1001acb9
mov ecx, dword [esp + 0x14]
sub ecx, esi
cmp ecx, eax
jae 0x1001acb9
mov eax, ecx
lea edx, [esp + 0x34]
push edx
push eax
mov ecx, edi
call ebx
add eax, esi
push eax
lea ecx, [esp + 0x34]
call dword [sym.imp.K8Common.dll_public:_unsigned_long_int___thiscall_GameMgr::GMInternetFile::Read_void___unsigned_long_int__class_GameMgr::GMInternetInfo__]
cmp eax, 0xffffffff
je 0x1001acf9
test eax, eax
jne 0x1001acef
cmp byte [esp + 0x74], al
jne 0x1001acf9
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
add ebp, 1
cmp ebp, 3
ja 0x1001acf9
mov eax, dword [esp + 0x40]
cmp eax, dword [esp + 0x14]
jb 0x1001ac90
mov ecx, dword [esp + 0x1c]
mov dl, byte [ecx + 0x2a0]
test dl, dl
jne 0x1001ad19
mov ecx, dword [esp + 0x40]
mov eax, dword [esp + 0x14]
cmp ecx, eax
je 0x1001ad3f
cmp byte [esp + 0x74], dl
jne 0x1001ad46
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMInternetFile::destructor_void_]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001abd1
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor al, al
jmp 0x1001ad74
cmp byte [esp + 0x74], 0
je 0x1001ad4e
mov eax, dword [esp + 0x7c]
mov dword [eax], ecx
jmp 0x1001ad54
mov ecx, dword [esp + 0x7c]
mov dword [ecx], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x6c], 0
call dword [sym.imp.K8Common.dll_public:_void___thiscall_GameMgr::GMInternetFile::destructor_void_]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1001ad72
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov al, 1
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret 0x10