Function at 0x403e70
Capabilities:
Connect to http server
Create http request
Send data
Send http request

Disassembly:
push ebp
lea ebp, [esp - 0x424]
sub esp, 0x424
push 0xffffffffffffffff
push 0x42f878
mov eax, dword fs:[0]
push eax
sub esp, 0x64
mov eax, dword [0x43b3c0]
xor eax, ebp
mov dword [ebp + 0x420], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x14], esi
cmp dword [esi + 0xd0], edi
je 0x403ec3
lea eax, [edi + 1]
jmp 0x4040f7
push edi
push edi
push edi
push edi
push str.TJClient_HTTP
mov dword [ebp - 4], edi
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 0x18], eax
cmp eax, edi
jne 0x403f07
push 0x11
push str.InterOpen_failed.
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x20], 0xf
mov dword [ebp - 0x24], edi
mov byte [ebp - 0x34], 0
call fcn.00403070
push 0x438f6c
lea eax, [ebp - 0x38]
push eax
call fcn.0041ab0d
cmp dword [esi + 0xa8], edi
jne 0x403f21
push 2
push 0x435e0c
lea ecx, [esi + 0x94]
call fcn.00403070
mov ebx, 0x10
cmp dword [esi + 0xac], ebx
jb 0x403f36
mov eax, dword [esi + 0x98]
jmp 0x403f3c
lea eax, [esi + 0x98]
cmp dword [esi + 0x90], ebx
jb 0x403f49
mov edi, dword [esi + 0x7c]
jmp 0x403f4c
lea edi, [esi + 0x7c]
push 0
push 0
push 3
push 0
push 0
push eax
call fcn.004175ec
mov ecx, dword [esi + 0x18]
add esp, 4
push eax
push edi
push ecx
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x403f8d
push str.InternetConnect_Failed.
lea ecx, [ebp - 0x54]
call fcn.00402e20
push 0x438f6c
lea edx, [ebp - 0x54]
push edx
call fcn.0041ab0d
mov dword [ebp - 0x1c], 0x435ec0
mov dword [ebp - 0x18], 0
cmp dword [esi + 0xc8], ebx
jb 0x403fab
mov ecx, dword [esi + 0xb4]
jmp 0x403fb1
lea ecx, [esi + 0xb4]
push 0
push 0xa0000000
lea edx, [ebp - 0x1c]
push edx
push 0
push str.HTTP_1.0
push ecx
push 0x435ed0
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [esi + 0x20], eax
test eax, eax
jne 0x40403f
push str.HttpOpenRequest_Failed.
lea ecx, [ebp - 0x70]
call fcn.00402e20
push 0x438f6c
lea eax, [ebp - 0x70]
push eax
call fcn.0041ab0d
mov byte [ebp - 4], 2
cmp dword [ebp + 0x1c], 0x10
mov esi, dword [ebp + 8]
jae 0x404002
lea esi, [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00404f00
push eax
push esi
push str._s_:__s
call fcn.00404f40
mov esi, dword [ebp - 0x14]
add esp, 0x10
call fcn.00404240
lea ecx, [ebp + 4]
mov byte [ebp - 4], 1
call fcn.00402690
mov eax, 0x404037
ret
push 0x3ff
lea ecx, [ebp + 0x21]
push 0
push ecx
mov byte [ebp + 0x20], 0
call fcn.0041a300
push 0
lea edx, [ebp + 0x20]
push str.Range:_bytes_d__r_n
push edx
call fcn.00417738
lea eax, [ebp + 0x20]
add esp, 0x18
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404070
mov ecx, dword [esi + 0x20]
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0x20000000
sub eax, edx
push eax
lea eax, [ebp + 0x20]
push eax
push ecx
call edi
mov eax, dword [0x435f04]
mov edx, dword [str.Connection:_close_r_n]
mov ecx, dword [0x435f08]
mov dword [ebp + 0x24], eax
mov eax, dword [0x435f10]
mov dword [ebp + 0x20], edx
mov edx, dword [0x435f0c]
mov dword [ebp + 0x30], eax
lea eax, [ebp + 0x20]
mov dword [ebp + 0x2c], edx
mov dword [ebp + 0x28], ecx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4040c0
push 0x20000000
sub eax, edx
mov edx, dword [esi + 0x20]
push eax
lea ecx, [ebp + 0x20]
push ecx
push edx
call edi
mov eax, dword [esi + 0x20]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
mov dword [esi + 0xd0], eax
mov eax, dword [esi + 0xd0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x420]
xor ecx, ebp
call fcn.004174dc
add ebp, 0x424
mov esp, ebp
pop ebp
ret