Function at 0x100b53c0
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 0x1024d507
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 0x100b5442
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 0x100b5463
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 0x100b547d
mov eax, dword [eax]
push 0x4400000
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_
mov byte [ebp - 4], 3
xor eax, eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp + 8], 4
mov dword [ebp - 0x1c], eax
test ecx, ecx
je 0x100b574a
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 0x100b54e4
cmp eax, 0x12e
je 0x100b54e4
cmp eax, 0x12d
je 0x100b54e4
cmp eax, 0x133
jne 0x100b574a
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], 4
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 0x100b5510
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 0x100b5550
push 0
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
push ecx
push 0x20000005
push eax
call ebx
test eax, eax
je 0x100b5550
mov eax, dword [ebp - 0x14]
mov cl, byte [ebp - 0xd]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x100b5574
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
mov ecx, eax
cmp ecx, 0x2f76
jne 0x100b5732
mov cl, 1
mov byte [ebp - 0xd], cl
test edi, edi
je 0x100b559f
mov eax, edi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x100b55a7
test cl, cl
jne 0x100b55a7
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100b573c
lea ecx, [ebp - 0x68]
mov dword [eax + 0x2c], 0xe0000006
mov byte [ebp + 0xb], 0
call fcn.1001a5a0
jmp 0x100b5776
mov eax, 0x3200000
mov dword [ebp - 0x14], eax
test edi, edi
je 0x100b55af
cmp eax, edi
jne 0x100b557c
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], 5
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 0x100b5603
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100b55ea
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 0x100b5776
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 0xe], 0
test ecx, ecx
je 0x100b5618
mov eax, dword [ebp - 0x14]
mov ebx, ecx
mov dword [ecx + 8], eax
jmp 0x100b5638
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 0x100b56f5
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100b5667
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b56ef
mov eax, dword [ebp - 0x14]
cmp byte [ebp - 0xd], 0
mov ecx, 0x1000
jne 0x100b567a
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 0x100b56ef
test edi, edi
jne 0x100b56af
cmp byte [ebp - 0xd], al
jne 0x100b56ef
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 0x100b56ef
mov eax, dword [ebp - 0x24]
cmp eax, 0xffffffff
je 0x100b56dd
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 0x100b56dd
cmp edi, dword [ebp - 0x20]
jne 0x100b56dd
mov eax, dword [ebp - 0x14]
jmp 0x100b5643
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100b570b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
jmp 0x100b570b
mov eax, dword [ebp - 0x14]
cmp dword [ebx + 0xc], eax
je 0x100b570f
cmp byte [ebp - 0xd], 0
jne 0x100b570f
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100b570b
mov dword [edi + 0x2c], 0xe0000006
mov byte [ebp + 0xb], 0
cmp byte [ebp - 0xe], 0
je 0x100b5720
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 0x100b5776
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100b573c
mov dword [eax + 0x2c], ecx
lea ecx, [ebp - 0x68]
mov byte [ebp + 0xb], 0
call fcn.1001a5a0
jmp 0x100b5776
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x100b5767
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], eax
test eax, eax
jne 0x100b576b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x2c], eax
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x100b5772
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 0x100b5786
push eax
call ebx
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x100b5790
push eax
call ebx
cmp dword [ebp - 0x38], 0
je 0x100b57b1
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]
lea ecx, [ebp - 0x50]
call fcn.1001a5a0
test esi, esi
je 0x100b57cf
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