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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x1c], esi
cmp dword [esi + 0x2c], 0
je 0x40c0fc
cmp dword [esi + 0x30], 0x10
lea eax, [esi + 0x1c]
jb 0x40bd97
mov eax, dword [eax]
lea edi, [esi + 0x64]
push edi
lea ecx, [esi + 0x4c]
push ecx
lea ebx, [esi + 0x34]
push ebx
push eax
call fcn.0040ad50
test al, al
je 0x40c0fc
cmp dword [esi + 0x344], 8
lea eax, [esi + 0x330]
jb 0x40bdc2
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [esi + 0x378], eax
test eax, eax
je 0x40c0fc
push ebx
lea eax, [esp + 0x24]
push eax
call fcn.0040abe0
mov ecx, eax
cmp dword [ecx + 0x14], 8
jb 0x40bdf4
mov ecx, dword [ecx]
movzx eax, word [edi]
push 0
push 0
push 3
push 0
push 0
push eax
push ecx
push dword [esi + 0x378]
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x37c], eax
cmp edx, 8
jb 0x40be51
mov ecx, dword [esp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40be47
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c117
push edx
push ecx
call fcn.0044bea4
add esp, 8
cmp dword [esi + 0x37c], 0
je 0x40c0f5
mov ecx, 0x1bb
mov eax, 0x84401100
cmp word [edi], cx
mov ebx, 0x84c01100
cmovne ebx, eax
lea eax, [esi + 0x4c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040abe0
mov edi, eax
cmp dword [edi + 0x14], 8
jb 0x40be8b
mov edi, dword [edi]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push ebx
push 0
push 0x4e0870
push 0x4e21f8
push edi
push str.POST
push dword [esi + 0x37c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov edx, dword [esp + 0x34]
mov dword [esi + 0x380], eax
cmp edx, 8
jb 0x40bef3
mov ecx, dword [esp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bee9
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40c11c
push edx
push ecx
call fcn.0044bea4
add esp, 8
mov ecx, dword [esi + 0x380]
test ecx, ecx
je 0x40c0f5
cmp byte [esi], 0
mov edi, dword [sym.imp.WININET.dll_HttpAddRequestHeadersW]
jne 0x40bf20
push 0xa0000000
push 0xffffffffffffffff
lea eax, [esi + 0x66]
push eax
push ecx
call edi
mov ecx, dword [esi + 0x380]
cmp dword [esi + 0x2fc], 8
lea eax, [esi + 0x2e8]
jb 0x40bf31
mov eax, dword [eax]
push 0xa0000000
push 0xffffffffffffffff
push eax
push ecx
call edi
cmp dword [esi + 0x314], 8
lea eax, [esi + 0x300]
jb 0x40bf4d
mov eax, dword [eax]
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [esi + 0x380]
call edi
cmp dword [esi + 0x35c], 8
lea eax, [esi + 0x348]
jb 0x40bf6e
mov eax, dword [eax]
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [esi + 0x380]
call edi
cmp dword [esi + 0x374], 8
lea eax, [esi + 0x360]
jb 0x40bf8f
mov eax, dword [eax]
push 0xa0000000
push 0xffffffffffffffff
push eax
push dword [esi + 0x380]
call edi
mov dword [esi + 0x384], 0x28
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
cmp ecx, edx
jne 0x40bfc2
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
jne 0x40bfc2
xor eax, eax
jmp 0x40c0cc
lea edi, [esi + 0x166]
lea ebx, [edi + 1]
nop dword [eax + eax]
mov al, byte [edi]
inc edi
test al, al
jne 0x40bfd0
sub edi, ebx
lea ebx, [esi + 0x1e6]
lea eax, [ebx + 1]
mov dword [esp + 0x10], eax
mov al, byte [ebx]
inc ebx
test al, al
jne 0x40bfe6
sub ebx, dword [esp + 0x10]
sub edx, ecx
mov eax, 0x38e38e39
mov dword [esp + 0x14], 0
imul edx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
je 0x40c04a
mov al, byte [esi]
xor edx, edx
test al, al
jne 0x40c105
mov eax, dword [esi + 4]
mov ecx, dword [edx + eax + 0x40]
mov eax, dword [esp + 0x10]
add ecx, edi
dec eax
cmp dword [esp + 0x14], eax
mov eax, dword [esp + 0x14]
lea edi, [ecx + ebx]
cmovae edi, ecx
inc eax
add edx, 0x48
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
mov al, byte [esi]
jb 0x40c016
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
sub ecx, eax
mov dword [esp + 0x14], eax
mov eax, 0x66666667
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
jbe 0x40c078
test eax, eax
je 0x40c0b5
add edi, ebx
test eax, eax
je 0x40c0b5
mov edx, dword [esp + 0x14]
dec eax
add edx, 0x40
mov dword [esp + 0x10], eax
xor esi, esi
nop word [eax + eax]
mov ecx, dword [edx - 0x18]
lea edx, [edx + 0x50]
add ecx, dword [edx - 0x48]
mov eax, dword [edx - 0x50]
add ecx, edi
add eax, ecx
cmp esi, dword [esp + 0x10]
lea edi, [eax + ebx]
cmovae edi, eax
inc esi
cmp esi, dword [esp + 0x18]
jb 0x40c090
mov esi, dword [esp + 0x1c]
lea ecx, [esi + 0x266]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c0c0
sub ecx, edx
lea eax, [ecx + edi]
push 0
push 0
mov dword [esi + 0x3a0], eax
lea eax, [esi + 0x384]
push 0
push eax
push dword [esi + 0x380]
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
jne 0x40c10e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.0040c130
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 4]
mov eax, dword [edx + ecx + 0x40]
jmp 0x40c0cc
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.004ab9cc
call fcn.004ab9cc
int3