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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x1024d2bb
push eax
mov eax, 0x1018
mov dword fs:[0], esp
call fcn.1006fb30
mov eax, dword [ebp + 8]
test eax, eax
jne 0x100b3399
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [eax]
push ebx
push esi
mov esi, dword [ebp + 0x18]
xor bl, bl
mov dword [ebp - 0x18], 4
mov dword [ebp - 0x14], 0
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100b33da
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 0x100b33da
mov eax, dword [ebp - 0x14]
jmp 0x100b33f5
call edi
mov ecx, eax
cmp ecx, 0x2f76
jne 0x100b35b4
mov bl, 1
test esi, esi
je 0x100b3422
mov eax, esi
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x100b342a
test bl, bl
jne 0x100b342a
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100b35be
pop edi
pop esi
mov dword [eax + 0x2c], 0xe0000006
xor al, al
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, 0x3200000
mov dword [ebp - 0x14], eax
test esi, esi
je 0x100b3432
cmp eax, esi
jne 0x100b33fd
mov dword [ebp - 0x24], vtable.WM::GMFile.0
mov dword [ebp - 0x20], 0xffffffff
push 0x80
push 2
push 3
push 0x40000000
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
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 0x100b3477
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x100b3470
call edi
mov dword [esi + 0x2c], eax
xor bh, bh
jmp 0x100b358b
mov ecx, dword [ebp + 0x14]
mov byte [ebp - 0xd], 0
test ecx, ecx
je 0x100b348c
mov eax, dword [ebp - 0x14]
mov edi, ecx
mov dword [ecx + 8], eax
jmp 0x100b34ac
push 0x30
mov byte [ebp - 0xd], 1
call fcn.1006e6a7
add esp, 4
mov dword [ebp - 0x1c], eax
mov ecx, eax
push dword [ebp - 0x14]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMInternetInfo::constructor_unsigned_int_
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], 0
mov bh, 1
cmp dword [edi + 0xc], eax
jae 0x100b3564
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x100b34d9
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b355e
mov eax, dword [ebp - 0x14]
mov ecx, 0x1000
test bl, bl
jne 0x100b34ea
sub eax, dword [edi + 0xc]
cmp eax, ecx
cmovb ecx, eax
push edi
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1024]
push eax
call sym.WMCommon.dll_public:_unsigned_long_int___thiscall_WM::GMInternetFile::Read_void___unsigned_long_int__class_WM::GMInternetInfo__
mov esi, eax
cmp esi, 0xffffffff
je 0x100b355e
test esi, esi
jne 0x100b351e
test bl, bl
jne 0x100b355e
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 0x100b355e
mov eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x100b354c
push 0
lea ecx, [ebp - 0x1c]
push ecx
push esi
lea ecx, [ebp - 0x1024]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100b354c
cmp esi, dword [ebp - 0x1c]
jne 0x100b354c
mov eax, dword [ebp - 0x14]
jmp 0x100b34b5
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x100b3578
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi + 0x2c], eax
jmp 0x100b3578
mov eax, dword [ebp - 0x14]
cmp dword [edi + 0xc], eax
je 0x100b357a
test bl, bl
jne 0x100b357a
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x100b3578
mov dword [esi + 0x2c], 0xe0000006
xor bh, bh
cmp byte [ebp - 0xd], 0
je 0x100b358b
push 0x30
push edi
call fcn.1006e6d7
add esp, 8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], vtable.WM::GMFile.0
cmp eax, 0xffffffff
je 0x100b35a1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov al, bh
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x100b35be
mov dword [eax + 0x2c], ecx
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret