Function at 0x40c170
Capabilities:
Connect to http server
Create http request
Reference http user-agent string
Send data
Send http request

Disassembly:
push 0xffffffffffffffff
push 0x44eb20
mov eax, dword fs:[0]
push eax
sub esp, 0x108
mov eax, dword [0x468110]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x468110]
xor eax, esp
push eax
lea eax, [esp + 0x11c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x12c]
push eax
lea ecx, [esp + 0xac]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
xor ebp, ebp
push str.User_Agent_tMozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
lea ecx, [esp + 0x58]
mov dword [esp + 0x128], ebp
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
mov byte [esp + 0x124], 1
mov eax, dword [esp + 0x58]
mov edi, 8
cmp dword [esp + 0x6c], edi
jae 0x40c1f3
lea eax, [esp + 0x58]
push ebp
push ebp
push ebp
push ebp
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
mov dword [esp + 0x14], esi
cmp esi, ebp
je 0x40c2af
lea ecx, [esp + 0x70]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x124], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x90]
push ecx
lea edx, [esp + 0x78]
push edx
lea ecx, [esp + 0xb4]
mov byte [esp + 0x130], 3
call fcn.0040da80
cmp dword [esp + 0x18], 4
mov eax, 0x50
jne 0x40c262
mov eax, 0x1bb
mov ecx, dword [esp + 0x74]
cmp dword [esp + 0x88], edi
jae 0x40c273
lea ecx, [esp + 0x74]
push ebp
push ebp
push 3
push ebp
push ebp
push eax
push ecx
push esi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ebx, eax
cmp ebx, ebp
jne 0x40c2e2
lea ecx, [esp + 0x8c]
mov byte [esp + 0x124], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x124], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x124], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x124], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
xor eax, eax
xor edx, edx
jmp 0x40c4c5
mov eax, dword [esp + 0x90]
cmp dword [esp + 0xa4], edi
jae 0x40c2f9
lea eax, [esp + 0x90]
push ebp
push 0x84000000
push ebp
push ebp
push ebp
push eax
push 0x457ba8
push ebx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
cmp esi, ebp
je 0x40c288
lea ecx, [esp + 0xc4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_void_]
mov byte [esp + 0x124], 4
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], edi
jae 0x40c345
lea eax, [esp + 0xc8]
mov ecx, dword [esp + 0xd8]
push ebp
push ebp
push ecx
push eax
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
push 0x16
lea edx, [esp + 0x100]
push edx
xor edi, edi
call fcn.0040dbf0
push 1
lea eax, [esp + 0xe4]
push eax
mov byte [esp + 0x12c], 5
call fcn.0040dbf0
push 0x13
lea ecx, [esp + 0x3c]
push ecx
mov byte [esp + 0x12c], 6
call fcn.0040dbf0
mov byte [esp + 0x124], 7
cmp dword [esp + 0x4c], edi
je 0x40c3ba
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x40c3b0
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR90.dll__wtoi]
add esp, 4
push 5
lea edx, [esp + 0x20]
push edx
call fcn.0040dbf0
push eax
lea ecx, [esp + 0x3c]
mov byte [esp + 0x128], 8
call dword [0x451350]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x124], 7
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp dword [esp + 0x4c], 0
je 0x40c40f
cmp dword [esp + 0x50], 8
mov eax, dword [esp + 0x3c]
jae 0x40c401
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.MSVCR90.dll__wtoi64]
add esp, 4
mov edi, eax
mov ebp, edx
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
lea ecx, [esp + 0x38]
mov byte [esp + 0x124], 6
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xe0]
mov byte [esp + 0x124], 5
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xfc]
mov byte [esp + 0x124], 4
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xc4]
mov byte [esp + 0x124], 3
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x8c]
mov byte [esp + 0x124], 2
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x70]
mov byte [esp + 0x124], 1
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0x54]
mov byte [esp + 0x124], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x124], 0xffffffff
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov eax, edi
mov edx, ebp
mov ecx, dword [esp + 0x11c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00436772
add esp, 0x114
ret 4