Function at 0x100b4f90
Capabilities:
Check http status code
Create http request
Get http content length
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024d4cd
push eax
mov eax, 0x105c
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 - 0x20], 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 - 0x18], 0x10320968
test eax, eax
je 0x100b5012
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 0x100b5033
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 0x100b504d
mov eax, dword [eax]
push 0x84400000
push 0xffffffffffffffff
push ecx
push eax
push esi
lea ecx, [ebp - 0x38]
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 ecx, dword [ebp - 0x38]
xor eax, eax
mov dword [ebp + 8], 4
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x100b5322
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x20000013
push ecx
call ebx
mov eax, dword [ebp - 0x1c]
cmp eax, 0xc8
je 0x100b50bc
cmp eax, 0x12e
je 0x100b50bc
cmp eax, 0x12d
je 0x100b50bc
cmp eax, 0x133
jne 0x100b5322
push dword [ebp + 0xc]
lea eax, [ebp - 0x68]
push eax
call sym.WMCommon.dll_public:_static_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_WM::GMFileName::GetDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 5
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::IsDirectory_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 0xc
test al, al
jne 0x100b50e8
lea eax, [ebp - 0x68]
push eax
call sym.WMCommon.dll_public:_static_bool___cdecl_WM::GMFilePathUtils::CreateDirectories_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__
add esp, 4
mov eax, dword [ebp - 0x38]
mov edi, dword [ebp + 0x18]
mov byte [ebp - 0xd], 0
mov dword [ebp + 8], 4
mov dword [ebp - 0x14], 0
test eax, eax
je 0x100b5128
push 0
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0x20000005
push eax
call ebx
test eax, eax
je 0x100b5128
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0xd]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100b514c
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov ecx, eax
cmp ecx, 0x2f76
jne 0x100b530a
mov cl, 1
mov byte [ebp - 0xd], cl
test edi, edi
je 0x100b5177
mov eax, edi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x100b517f
test cl, cl
jne 0x100b517f
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100b5314
lea ecx, [ebp - 0x68]
mov dword [eax + 0x2c], 0xe0000006
mov byte [ebp + 0xb], 0
call fcn.1001a5a0
jmp 0x100b534e
mov eax, 0x3200000
mov dword [ebp - 0x14], eax
test edi, edi
je 0x100b5187
cmp eax, edi
jne 0x100b5154
mov dword [ebp - 0x28], vtable.WM::GMFile.0
mov dword [ebp - 0x24], 0xffffffff
push 0x80
push 2
push 3
push 0x40000000
push dword [ebp + 0xc]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMFile::Create_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const___unsigned_int__unsigned_int__unsigned_int__unsigned_int_
test al, al
jne 0x100b51db
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100b51c2
call ebx
mov dword [edi + 0x2c], eax
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x68]
mov byte [ebp + 0xb], 0
call fcn.1001a5a0
jmp 0x100b534e
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 0xe], 0
test ecx, ecx
je 0x100b51f0
mov eax, dword [ebp - 0x14]
mov ebx, ecx
mov dword [ecx + 8], eax
jmp 0x100b5210
push 0x30
mov byte [ebp - 0xe], 1
call fcn.1006e6a7
add esp, 4
mov dword [ebp + 8], 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 + 0xb], 1
cmp dword [ebx + 0xc], eax
jae 0x100b52cd
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100b523f
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b52c7
mov eax, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
mov ecx, 0x1000
jne 0x100b5252
sub eax, dword [ebx + 0xc]
cmp eax, ecx
cmovb ecx, eax
push ebx
push ecx
lea eax, [ebp - 0x1068]
push eax
lea ecx, [ebp - 0x38]
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 0x100b52c7
test edi, edi
jne 0x100b5287
cmp byte [ebp - 0xd], al
jne 0x100b52c7
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 0x100b52c7
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x100b52b5
push 0
lea ecx, [ebp - 0x20]
push ecx
push edi
lea ecx, [ebp - 0x1068]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100b52b5
cmp edi, dword [ebp - 0x20]
jne 0x100b52b5
mov eax, dword [ebp - 0x14]
jmp 0x100b521b
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100b52e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
jmp 0x100b52e3
mov eax, dword [ebp - 0x14]
cmp dword [ebx + 0xc], eax
je 0x100b52e7
cmp byte [ebp - 0xd], 0
jne 0x100b52e7
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100b52e3
mov dword [edi + 0x2c], 0xe0000006
mov byte [ebp + 0xb], 0
cmp byte [ebp - 0xe], 0
je 0x100b52f8
push 0x30
push ebx
call fcn.1006e6d7
add esp, 8
lea ecx, [ebp - 0x28]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
lea ecx, [ebp - 0x68]
call fcn.1001a5a0
jmp 0x100b534e
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100b5314
mov dword [eax + 0x2c], ecx
lea ecx, [ebp - 0x68]
mov byte [ebp + 0xb], 0
call fcn.1001a5a0
jmp 0x100b534e
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100b533f
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
test eax, eax
jne 0x100b5343
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100b534a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [ebp + 0xb], 0
mov eax, dword [ebp - 0x34]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x100b535e
push eax
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100b5368
push eax
call ebx
cmp dword [ebp - 0x38], 0
je 0x100b5389
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 0x38]
mov edi, eax
call ebx
push edi
mov dword [ebp - 0x38], 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x100b539f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov al, byte [ebp + 0xb]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret