Function at 0x10050040
Capabilities:
Check http status code
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10052360
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push ebx
push esi
push edi
mov eax, dword [0x1006f184]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
lea ecx, [ebp - 0x64]
mov dword [ebp - 4], ebx
call fcn.1004efe0
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.1004f2d0
movzx edi, al
cmp edi, ebx
je 0x100502e9
cmp dword [ebp - 0x30], 3
jne 0x100502e9
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x14]
call fcn.1000bab0
lea edx, [ebp - 0x48]
push edx
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x10]
push ecx
mov byte [ebp - 4], 2
call fcn.1000ad50
movzx edx, word [ebp - 0x2c]
push ebx
push ebx
push ebx
push ebx
push str.SOSOTbh
mov byte [ebp - 4], 3
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x24], 4
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
cmp esi, ebx
je 0x10050254
mov edi, dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp + 0x14]
push eax
push 2
push esi
call edi
cmp eax, ebx
jne 0x1005013d
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
lea ecx, [ebp - 0x10]
call fcn.10001e10
lea ecx, [ebp - 0x14]
call fcn.10001e10
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.1004f050
lea ecx, [ebp + 8]
call fcn.10001e10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp + 0x14]
push ecx
push 5
push esi
call edi
cmp eax, ebx
je 0x100500fe
push 4
lea edx, [ebp + 0x14]
push edx
push 5
push esi
call edi
cmp eax, ebx
je 0x100500fe
push 4
lea eax, [ebp + 0x14]
push eax
push 6
push esi
mov dword [ebp + 0x14], ebx
call edi
cmp eax, ebx
je 0x100500fe
push 4
lea ecx, [ebp + 0x14]
push ecx
push 6
push esi
call edi
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0x100500fe
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x14]
push ebx
push ebx
push 3
push ebx
push ebx
push edx
push eax
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
test ebx, ebx
je 0x1005024a
cmp dword [ebp + 0x18], 0
push 0
je 0x100501b8
mov ecx, dword [ebp - 0x10]
push 0
push 0
push 0
push 0
push ecx
jmp 0x100501c7
mov edx, dword [ebp - 0x10]
push 0x44000000
push 0
push 0
push 0
push edx
push 0x10060c8c
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edi, eax
test edi, edi
je 0x10050243
push 0
push 0
push 0
push 0
push edi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1005023c
push 0
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x1c]
push ecx
push 0x20000013
push edi
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1005023c
mov eax, dword [ebp - 0x1c]
cmp eax, 0xc8
je 0x1005021d
cmp eax, 0x130
jne 0x1005023c
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push edx
push eax
push edi
call fcn.1004fba0
add esp, 0xc
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1005023c
mov dword [ebp - 0x18], 1
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x10050281
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x10050281
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff4
push eax
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [ebp - 0x14]
lea edx, [esi - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x100502a2
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x100502a2
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.1004f050
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x100502d5
add eax, 0xfffffff4
push eax
call ebx
test eax, eax
jg 0x100502d5
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.1004f050
mov eax, dword [ebp + 8]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x10050320
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10050320
mov edx, dword [ebp + 8]
add edx, 0xfffffff4
push edx
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret