Function at 0x100b4430
Capabilities:
Check http status code
Create http request
Get http content length

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024d3dc
push eax
mov eax, 0x1044
mov dword fs:[0], esp
call fcn.1006fb30
push ebx
push esi
push edi
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [ebp - 0x38], esi
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push eax
push 2
push esi
mov dword [ebp - 0x18], 0x7d0
call edi
push 4
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 3
push eax
push 3
push esi
call edi
mov eax, dword [0x10320968]
mov dword [ebp - 0x20], 0x10320968
test eax, eax
je 0x100b44b2
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x1031bf20
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 1
call fcn.1001a380
mov eax, dword [0x10320968]
test eax, eax
je 0x100b44d3
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x50]
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp + 8]
cmovae ecx, dword [ebp - 0x50]
cmp dword [eax + 0x14], 8
jb 0x100b44ed
mov eax, dword [eax]
push 0x400000
push 0xffffffffffffffff
push ecx
push eax
push esi
lea ecx, [ebp - 0x34]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMInternetFile::constructor_void___wchar_t_const___wchar_t_const___unsigned_long_int__unsigned_long_int_
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 4
call fcn.1001a5a0
mov eax, dword [ebp - 0x34]
mov dword [ebp + 8], 4
mov dword [ebp - 0x24], 0
test eax, eax
je 0x100b459e
push 0
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x24]
push ecx
push 0x20000013
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
cmp dword [ebp - 0x24], 0xc8
jne 0x100b459e
mov eax, dword [ebp - 0x34]
xor bl, bl
mov edi, dword [ebp + 0x18]
mov byte [ebp + 0xb], bl
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0
test eax, eax
je 0x100b457b
push 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0x20000005
push eax
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100b457b
mov eax, dword [ebp - 0x14]
jmp 0x100b4596
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x100b459e
mov bl, 1
mov byte [ebp + 0xb], bl
test edi, edi
je 0x100b4607
mov eax, edi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x100b460f
test bl, bl
jne 0x100b460f
mov byte [ebp - 0x1c], 0
mov eax, dword [ebp - 0x30]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x100b45b2
push eax
call ebx
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x100b45bc
push eax
call ebx
cmp dword [ebp - 0x34], 0
je 0x100b45dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x34]
mov edi, eax
call ebx
push edi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x100b45f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp - 0x1c]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, 0x3200000
mov dword [ebp - 0x14], eax
test edi, edi
je 0x100b461b
cmp eax, edi
cmova eax, edi
mov dword [ebp - 0x14], eax
mov ebx, dword [ebp + 0x14]
mov byte [ebp - 0xd], 0
test ebx, ebx
je 0x100b462b
mov dword [ebx + 8], eax
jmp 0x100b464b
push 0x30
mov byte [ebp - 0xd], 1
call fcn.1006e6a7
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, eax
push dword [ebp - 0x14]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMInternetInfo::constructor_unsigned_int_
mov ebx, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x1c], 1
cmp dword [ebx + 0xc], eax
jae 0x100b46fe
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100b467a
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b46f8
mov eax, dword [ebp - 0x14]
cmp byte [ebp + 0xb], 0
mov ecx, 0x1000
jne 0x100b468d
sub eax, dword [ebx + 0xc]
cmp eax, ecx
cmovb ecx, eax
push ebx
push ecx
lea eax, [ebp - 0x1050]
push eax
lea ecx, [ebp - 0x34]
call sym.WMCommon.dll_public:_unsigned_long_int___thiscall_WM::GMInternetFile::Read_void___unsigned_long_int__class_WM::GMInternetInfo__
mov edi, eax
cmp edi, 0xffffffff
je 0x100b46f8
test edi, edi
jne 0x100b46c2
cmp byte [ebp + 0xb], al
jne 0x100b46f8
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
cmp eax, 3
ja 0x100b46f8
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x20]
push edx
push edi
lea edx, [ebp - 0x1050]
mov eax, dword [ecx]
push edx
mov eax, dword [eax + 8]
call eax
test al, al
je 0x100b46f2
cmp edi, dword [ebp - 0x20]
jne 0x100b46f2
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x10]
cmp dword [ebx + 0xc], eax
jb 0x100b4662
jmp 0x100b46fb
mov byte [ebp - 0x1c], 0
jmp 0x100b4711
mov eax, dword [ebp - 0x14]
cmp dword [ebx + 0xc], eax
je 0x100b4711
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
cmp byte [ebp + 0xb], cl
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x1c], eax
cmp byte [ebp - 0xd], 0
je 0x100b45a2
push 0x30
push ebx
call fcn.1006e6d7
add esp, 8
jmp 0x100b45a2