Function at 0x100b1030
Capabilities:
Connect to http server
Create http request
Get http content length
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x50]
sub esp, 0x50
push 0xffffffffffffffff
push 0x1024d07e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x90
push ebx
mov ebx, ecx
push edi
mov dword [ebp + 0x38], ebx
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x100b106c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0x5c]
cmp dword [eax + 0x14], 8
jb 0x100b1077
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov edi, eax
mov dword [ebp - 0x80], edi
mov dword [ebp - 4], 0
test edi, edi
jne 0x100b109d
xor bl, bl
jmp 0x100b17e9
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0x60]
cmp dword [eax + 0x14], 8
jb 0x100b10ac
mov eax, dword [eax]
push esi
push 0
push 0
push 3
push 0
push 0
push dword [ebp + 0x68]
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp + 0x34], eax
test eax, eax
jne 0x100b10d0
xor bl, bl
jmp 0x100b17d2
xor esi, esi
push esi
mov byte [ebp - 4], 2
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b1798
mov eax, dword [ebp + 0x64]
cmp dword [eax + 0x14], 8
jb 0x100b10f2
mov eax, dword [eax]
push 0
push 0x4000000
push 0
push 0
push 0
push eax
push str.POST
push dword [ebp + 0x34]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x84], esi
test esi, esi
je 0x100b1798
xor eax, eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 7
mov word [ebp - 0x24], ax
lea eax, [ebp - 0x9c]
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 0x58]
push eax
call sym.WMCommon.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_WM::GMHttpPostMessage::GetHttpAppendHeader_void_
push eax
lea ecx, [ebp - 0x24]
call fcn.1001a270
lea ecx, [ebp - 0x9c]
call fcn.1001a5a0
mov ecx, dword [ebp + 0x58]
call sym.WMCommon.dll_public:_unsigned_int___thiscall_WM::GMHttpPostMessage::GetContentLength_void_
cmp dword [ebp - 0x10], 8
lea ecx, [ebp - 0x24]
push 0
cmovae ecx, dword [ebp - 0x24]
mov edx, eax
mov eax, dword [ebp - 0x14]
push dword [ebx]
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x7c], 0x28
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b15d4
push 0
push 0
push 0
lea eax, [ebp - 0x7c]
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x100b15d4
mov ecx, dword [ebp + 0x58]
mov eax, dword [ecx]
mov eax, dword [eax + 0x40]
cmp eax, 3
je 0x100b15e6
cmp eax, 1
je 0x100b15e6
cmp eax, 2
je 0x100b1658
test eax, eax
jne 0x100b1658
lea eax, [ebp]
push eax
call sym.WMCommon.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_WM::GMHttpPostMessage::GetBoundaryLineA_void_
mov dword [ebp + 0x2c], 0
mov dword [ebp + 0x30], 0xf
mov byte [ebp + 0x1c], 0
mov byte [ebp - 4], 6
xor ecx, ecx
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x60], ecx
mov eax, dword [eax]
mov dword [ebp + 0x68], eax
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100b1337
mov dword [ebp + 0x5c], 0
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b15c4
cmp dword [ebp + 0x14], 0x10
lea ecx, [ebp + 0x4c]
push ecx
push dword [ebp + 0x10]
lea eax, [ebp]
cmovae eax, dword [ebp]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x100b15c4
mov ecx, dword [ebp + 0x68]
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ecx]
add ecx, dword [ebp + 0x5c]
call fcn.10033be0
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 7
call fcn.10033e90
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x28]
cmp edx, 0x10
jb 0x100b12da
mov ecx, dword [ebp - 0x3c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100b12d0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b15a4
push edx
push ecx
call fcn.1006e6d7
add esp, 8
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b15c4
cmp dword [ebp + 0x30], 0x10
lea ecx, [ebp + 0x4c]
push ecx
push dword [ebp + 0x2c]
lea eax, [ebp + 0x1c]
cmovae eax, dword [ebp + 0x1c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x100b15c4
mov eax, dword [ebp + 0x68]
inc dword [ebp + 0x60]
add dword [ebp + 0x5c], 0x30
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp + 0x60], eax
jb 0x100b1250
push 0x100000
lea ecx, [ebp - 0x34]
call fcn.100209c0
mov byte [ebp - 4], 8
xor ecx, ecx
mov eax, dword [ebp + 0x58]
mov dword [ebp + 0x64], ecx
mov eax, dword [eax]
add eax, 0xc
mov dword [ebp + 0x68], eax
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x100b153f
mov dword [ebp + 0x5c], 0
nop dword [eax + eax]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b15bc
cmp dword [ebp + 0x14], 0x10
lea ecx, [ebp + 0x4c]
push ecx
push dword [ebp + 0x10]
lea eax, [ebp]
cmovae eax, dword [ebp]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x100b15bc
mov ecx, dword [ebp + 0x68]
lea eax, [ebp - 0x9c]
push eax
mov ecx, dword [ecx]
add ecx, dword [ebp + 0x5c]
call fcn.10033aa0
push eax
lea ecx, [ebp + 0x1c]
mov byte [ebp - 4], 9
call fcn.10033e90
mov byte [ebp - 4], 8
mov edx, dword [ebp - 0x88]
cmp edx, 0x10
jb 0x100b1413
mov ecx, dword [ebp - 0x9c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x100b1409
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100b15a4
push edx
push ecx
call fcn.1006e6d7
add esp, 8
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100b15bc
cmp dword [ebp + 0x30], 0x10
lea ecx, [ebp + 0x4c]
push ecx
push dword [ebp + 0x2c]
lea eax, [ebp + 0x1c]
cmovae eax, dword [ebp + 0x1c]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x100b15bc
mov dword [ebp + 0x44], vtable.WM::GMFile.0
mov dword [ebp + 0x48], 0xffffffff
mov ebx, dword [ebp + 0x68]
lea ecx, [ebp + 0x44]
push 0
mov byte [ebp - 4], 0xa
push 3
mov eax, dword [ebx]
push 1
add eax, 0x30
add eax, dword [ebp + 0x5c]
push accept
push eax
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
je 0x100b15aa
mov eax, dword [ebx]
xor ebx, ebx
mov ecx, dword [ebp + 0x5c]
mov eax, dword [eax + ecx + 0x48]
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x60], ebx
lea eax, [ebp + 0x60]
push eax
push 0x100000
push dword [ebp - 0x2c]
lea ecx, [ebp + 0x44]
call sym.WMCommon.dll_public_virtual:_bool___thiscall_WM::GMFile::Read_void___unsigned_int__unsigned_int__
test al, al
je 0x100b15aa
mov ecx, dword [ebp + 0x38]
add ebx, dword [ebp + 0x60]
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMHttpPost::CheckCancel_void_
test al, al
jne 0x100b15aa
lea eax, [ebp + 0x4c]
push eax
push dword [ebp + 0x60]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x100b15aa
cmp ebx, dword [ebp + 0x18]
jb 0x100b1491
mov ebx, dword [ebp + 0x38]
mov ecx, ebx
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMHttpPost::CheckCancel_void_
test al, al
jne 0x100b15aa
lea eax, [ebp + 0x4c]
push eax
push 2
push 0x10266dc4
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
test eax, eax
je 0x100b15aa
lea ecx, [ebp + 0x44]
mov byte [ebp - 4], 8
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
mov eax, dword [ebp + 0x68]
inc dword [ebp + 0x64]
add dword [ebp + 0x5c], 0x64
mov ecx, dword [eax + 4]
sub ecx, dword [eax]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp + 0x64], eax
jb 0x100b1380
mov ecx, dword [ebp + 0x58]
lea eax, [ebp - 0x54]
push eax
call sym.WMCommon.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_WM::GMHttpPostMessage::GetBoundaryTailA_void_
mov ecx, ebx
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMHttpPost::CheckCancel_void_
test al, al
jne 0x100b15b4
cmp dword [ebp - 0x40], 0x10
lea ecx, [ebp + 0x4c]
push ecx
push dword [ebp - 0x44]
lea eax, [ebp - 0x54]
cmovae eax, dword [ebp - 0x54]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
mov ecx, ebx
call sym.WMCommon.dll_public:_bool___thiscall_WM::GMHttpPost::CheckCancel_void_
test al, al
jne 0x100b15b4
lea ecx, [ebp - 0x54]
call fcn.1001be60
lea ecx, [ebp - 0x34]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp + 0x1c]
call fcn.1001be60
lea ecx, [ebp]
mov byte [ebp - 4], 3
call fcn.1001be60
jmp 0x100b1658
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
lea ecx, [ebp + 0x44]
call sym.WMCommon.dll_public_virtual:_void___thiscall_WM::GMFile::destructor_void_
jmp 0x100b15bc
lea ecx, [ebp - 0x54]
call fcn.1001be60
lea ecx, [ebp - 0x34]
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
lea ecx, [ebp + 0x1c]
call fcn.1001be60
lea ecx, [ebp]
call fcn.1001be60
xor bl, bl
lea ecx, [ebp - 0x24]
mov byte [ebp + 0x5b], bl
call fcn.1001a5a0
jmp 0x100b179d
mov dword [ebp + 0x3c], vtable.WM::GMBuffer_unsigned_char_.0
mov dword [ebp + 0x40], 0
mov dword [ebp + 0x44], 0
mov dword [ebp + 0x48], 0
lea eax, [ebp + 0x3c]
mov byte [ebp - 4], 4
push eax
call sym.WMCommon.dll_public:_void___thiscall_WM::GMHttpPostMessage::GetRawData_class_WM::GMBuffer_unsigned_char___
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x5c], 0
push eax
push dword [ebp + 0x48]
push dword [ebp + 0x44]
push esi
call dword [sym.imp.WININET.dll_InternetWriteFile]
push 0
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp + 0x3c]
test eax, eax
jne 0x100b164f
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
xor bl, bl
lea ecx, [ebp - 0x24]
mov byte [ebp + 0x5b], bl
call fcn.1001a5a0
jmp 0x100b179d
mov byte [ebp - 4], 3
call sym.WMCommon.dll_public:_void___thiscall_WM::GMSerial::destructor_void_
push 0
push 0
push 0
push esi
call dword [sym.imp.WININET.dll_HttpEndRequestW]
mov ecx, eax
mov eax, dword [ebp + 0x58]
mov eax, dword [eax]
mov dword [ebp + 0x64], eax
cmp byte [eax + 0x28], 0
je 0x100b1786
push 0
lea ebx, [eax + 0x2c]
mov dword [ebp + 0x5c], 5
lea eax, [ebp + 0x60]
mov dword [ebp + 0x60], 4
push eax
lea eax, [ebp + 0x5c]
push eax
push 0x20000013
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
je 0x100b15d4
mov eax, dword [ebp + 0x58]
push 0
mov ecx, dword [eax]
mov eax, dword [ebp + 0x5c]
mov dword [ecx + 0x3c], eax
lea eax, [ebp + 0x60]
push eax
lea eax, [ebp + 0x5c]
mov dword [ebp + 0x60], 4
push eax
push 0x20000005
push esi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x100b16eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
jne 0x100b16eb
mov eax, 0x100000
mov dword [ebp + 0x5c], eax
jmp 0x100b16f8
cmp dword [ebp + 0x60], 0
je 0x100b15d4
mov eax, dword [ebp + 0x5c]
inc eax
mov ecx, ebx
push eax
call fcn.10020ab0
mov eax, dword [ebp + 0x5c]
inc eax
push eax
push 0
push dword [ebx + 8]
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebx + 8]
add esp, 0xc
mov ecx, dword [ebp + 0x5c]
xor ebx, ebx
mov dword [ebp + 0x68], edx
test ecx, ecx
je 0x100b1769
sub ecx, ebx
mov dword [ebp + 0x58], 0
mov eax, 0x1000
cmp ecx, eax
cmovb eax, ecx
lea ecx, [ebp + 0x58]
push ecx
push eax
lea eax, [ebx + edx]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x100b15d4
mov eax, dword [ebp + 0x58]
add ebx, eax
cmp eax, 0xffffffff
je 0x100b15d4
test eax, eax
je 0x100b1769
mov ecx, dword [ebp + 0x5c]
mov edx, dword [ebp + 0x68]
cmp ebx, ecx
jb 0x100b1722
mov ecx, dword [ebp + 0x64]
mov eax, dword [ecx + 0x30]
cmp ebx, eax
cmovbe eax, ebx
mov bl, 1
mov dword [ecx + 0x38], eax
lea ecx, [ebp - 0x24]
mov byte [ebp + 0x5b], bl
call fcn.1001a5a0
jmp 0x100b179d
test ecx, ecx
lea ecx, [ebp - 0x24]
setne bl
mov byte [ebp + 0x5b], bl
call fcn.1001a5a0
jmp 0x100b179d
xor bl, bl
mov byte [ebp + 0x5b], bl
test esi, esi
je 0x100b17ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov ebx, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov bl, byte [ebp + 0x5b]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp + 0x34]
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov esi, eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop esi
mov ecx, dword [ebp - 0xc]
mov al, bl
pop edi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x50]
pop ebp
ret 0x14