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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cdf55
mov eax, dword fs:[0]
push eax
sub esp, 0x1b8
mov eax, dword [0x510620]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x19c], eax
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x114], 0
movq qword [ebp - 0x14c], xmm0
mov dword [ebp - 0x194], esi
mov dword [ebp - 0x1c0], ecx
mov dword [ebp - method.AutoInetHandle.virtual_0], vtable.AutoInetHandle.0
mov dword [ebp - 0x148], 0
lea ecx, [ebp - 0x1bc]
mov dword [ebp - 4], 0
push ecx
mov ecx, eax
call fcn.004051b0
cmp dword [eax + 0x14], 8
jb 0x40568d
mov eax, dword [eax]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenW]
cmp dword [ebp - 0x1a8], 8
mov edi, eax
mov dword [ebp - 0x198], edi
mov dword [ebp - 0x148], edi
jb 0x4056c1
push dword [ebp - 0x1bc]
call fcn.00494c0b
add esp, 4
test edi, edi
jne 0x4056cc
xor eax, eax
jmp 0x405cc4
mov eax, dword [ebp - 0x19c]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
test eax, eax
mov dword [ebp - 0x150], eax
mov eax, dword [sym.imp.WININET.dll_InternetSetOptionW]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x134], ecx
je 0x40570c
push 4
lea ecx, [ebp - 0x150]
push ecx
push 2
push edi
call eax
mov ecx, dword [ebp - 0x134]
mov eax, dword [sym.imp.WININET.dll_InternetSetOptionW]
test ecx, ecx
je 0x40571e
push 4
lea ecx, [ebp - 0x134]
push ecx
push 5
push edi
call eax
mov eax, dword [ebp - 0x19c]
cmp dword [eax + 0x18], 0
jbe 0x40573c
push 4
lea eax, [ebp - 0x138]
push eax
push 6
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
push 4
lea eax, [ebp - 0x13c]
mov dword [ebp - 0x13c], 1
push eax
push 0x40
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
cmp dword [esi + 0x30], 8
lea ecx, [esi + 0x1c]
xorps xmm0, xmm0
movq qword [ebp - 0x188], xmm0
jb 0x40576e
mov ecx, dword [ecx]
movzx eax, word [esi + 0x94]
push 0
push SysReAllocString
push 3
push 0
push 0
push eax
push ecx
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov ecx, eax
mov dword [ebp - method.AutoInetHandle.virtual_0], vtable.AutoInetHandle.0
mov dword [ebp - 0x1a0], ecx
mov dword [ebp - 0x1a4], eax
mov dword [ebp - 0x184], eax
mov byte [ebp - 4], 1
test ecx, ecx
jne 0x4057b8
xor esi, esi
jmp 0x405cb7
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0
push eax
mov ecx, esi
call fcn.00403de0
xorps xmm0, xmm0
movq qword [ebp - 0x144], xmm0
mov dword [ebp - method.AutoInetHandle.virtual_0], vtable.AutoInetHandle.0
mov dword [ebp - 0x140], 0
mov byte [ebp - 4], 3
mov edi, 0x24000200
cmp dword [esi + 0x98], 4
jne 0x405815
cmp dword [esi + 0xb4], 0
mov edi, 0x24800200
mov eax, 0x24803200
cmovne edi, eax
lea eax, [esi + 0x7c]
push eax
lea edx, [esi + 0x64]
lea ecx, [ebp - 0x168]
call fcn.00406b70
add esp, 4
lea eax, [ebp - 0x180]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.00403c30
mov byte [ebp - 4], 5
cmp dword [ebp - 0x170], 0
je 0x40587c
lea eax, [ebp - 0x1bc]
mov ecx, esi
push eax
call fcn.004037f0
mov byte [ebp - 4], 6
mov edx, 0x4e4d7c
mov ecx, eax
mov dword [ebp - 0x114], 1
call fcn.00406c30
mov byte [ebp - 0x18d], 1
test al, al
jne 0x405883
mov byte [ebp - 0x18d], 0
mov dword [ebp - 4], 5
test byte [ebp - 0x114], 1
je 0x4058aa
cmp dword [ebp - 0x1a8], 8
jb 0x4058aa
push dword [ebp - 0x1bc]
call fcn.00494c0b
add esp, 4
cmp byte [ebp - 0x18d], 0
je 0x405904
lea eax, [ebp - 0x1bc]
mov ecx, esi
push eax
call fcn.00403c30
mov esi, eax
push 0x4e4eb8
lea ecx, [ebp - 0x168]
mov byte [ebp - 4], 7
call fcn.00405df0
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00405f60
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1a8], 8
jb 0x4058fe
push dword [ebp - 0x1bc]
call fcn.00494c0b
add esp, 4
mov esi, dword [ebp - 0x194]
lea eax, [ebp - 0x1bc]
mov ecx, esi
push eax
call fcn.004037f0
cmp dword [ebp - 0x154], 8
lea ecx, [ebp - 0x168]
cmovae ecx, dword [ebp - 0x168]
cmp dword [eax + 0x14], 8
jb 0x40592e
mov eax, dword [eax]
push 0
push edi
mov edi, dword [ebp - 0x118]
push edi
push 0
push 0
push ecx
push eax
push dword [ebp - 0x1a0]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp dword [ebp - 0x1a8], 8
mov dword [ebp - 0x194], eax
mov dword [ebp - 0x140], eax
jb 0x405973
push dword [ebp - 0x1bc]
call fcn.00494c0b
mov eax, dword [ebp - 0x194]
add esp, 4
test eax, eax
jne 0x40597e
xor esi, esi
jmp 0x405c1a
cmp dword [esi + 0x98], 4
jne 0x4059d2
cmp dword [esi + 0xb4], 0
je 0x4059d2
lea ecx, [ebp - 0x18c]
mov dword [ebp - 0x18c], 4
push ecx
lea ecx, [ebp - 0x114]
push ecx
push 0x1f
push eax
call dword [sym.imp.WININET.dll_InternetQueryOptionW]
or dword [ebp - 0x114], 0x180
lea eax, [ebp - 0x114]
push 4
push eax
push 0x1f
push dword [ebp - 0x194]
call dword [sym.imp.WININET.dll_InternetSetOptionW]
lea eax, [ebp - 0x130]
mov ecx, esi
push eax
call fcn.00403850
lea eax, [ebp - 0x1bc]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.004037f0
mov edx, str.POST
mov byte [ebp - 4], 9
mov ecx, eax
call fcn.00406c30
mov byte [ebp - 4], 8
cmp dword [ebp - 0x1a8], 8
mov byte [ebp - 0x18d], al
jb 0x405a29
push dword [ebp - 0x1bc]
call fcn.00494c0b
mov al, byte [ebp - 0x18d]
add esp, 4
test al, al
je 0x405a75
mov ecx, dword [esi + 0xd4]
test ecx, ecx
je 0x405a6c
push dword [esi + 0xd8]
cmp dword [ebp - 0x11c], 8
lea eax, [ebp - 0x130]
push ecx
push dword [ebp - 0x120]
cmovae eax, dword [ebp - 0x130]
push eax
push dword [ebp - 0x194]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
jmp 0x405b3b
cmp dword [ebp - 0x170], 0
jne 0x405aa7
cmp dword [ebp - 0x11c], 8
lea eax, [ebp - 0x130]
push 0
cmovae eax, dword [ebp - 0x130]
push 0
push dword [ebp - 0x120]
push eax
push dword [ebp - 0x194]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov esi, eax
jmp 0x405b3b
cmp dword [esi + 0xec], 0
mov dword [ebp - 0x114], 0
jne 0x405ac1
mov eax, 0xfde9
jmp 0x405acc
lea ecx, [esi + 0xdc]
call fcn.00450530
push ecx
push eax
lea edx, [ebp - 0x180]
lea ecx, [ebp - 0x114]
call fcn.00451060
mov esi, dword [ebp - 0x114]
add esp, 8
mov ecx, esi
lea edx, [ecx + 1]
lea ecx, [ecx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405af0
sub ecx, edx
lea eax, [ebp - 0x130]
cmp dword [ebp - 0x11c], 8
push ecx
cmovae eax, dword [ebp - 0x130]
push esi
push dword [ebp - 0x120]
push eax
push dword [ebp - 0x194]
call dword [sym.imp.WININET.dll_HttpSendRequestW]
mov dword [ebp - 0x114], eax
test esi, esi
je 0x405b35
push esi
call fcn.00495300
add esp, 4
mov esi, dword [ebp - 0x114]
test esi, esi
jne 0x405b6e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
push esi
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x18c], ecx
lea ecx, [ebp - 0x18c]
push ecx
push 0x400
push eax
push esi
push 0x1100
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
jmp 0x405be6
push 0x14
call fcn.004952af
mov edx, eax
add esp, 4
test edx, edx
je 0x405bdc
mov eax, dword [ebp - 0x198]
xorps xmm0, xmm0
mov edi, dword [ebp - 0x19c]
mov ecx, dword [ebp - 0x194]
movdqu xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 8], eax
mov eax, dword [ebp - 0x1a0]
mov dword [edx + 4], edi
mov edi, dword [ebp - 0x118]
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x1a4], 0
mov dword [ebp - 0x198], 0
mov dword [edx], vtable.HttpResponseImpl.0
mov dword [edx + 0xc], eax
mov dword [edx + 0x10], ecx
jmp 0x405bde
xor edx, edx
mov eax, dword [ebp - 0x1c0]
mov dword [eax], edx
cmp dword [ebp - 0x11c], 8
jb 0x405bfd
push dword [ebp - 0x130]
call fcn.00494c0b
add esp, 4
xor eax, eax
mov dword [ebp - 0x11c], 7
mov dword [ebp - 0x120], 0
mov word [ebp - 0x130], ax
cmp dword [ebp - 0x16c], 8
jb 0x405c31
push dword [ebp - 0x180]
call fcn.00494c0b
add esp, 4
xor eax, eax
mov dword [ebp - 0x16c], 7
cmp dword [ebp - 0x154], 8
mov dword [ebp - 0x170], 0
mov word [ebp - 0x180], ax
jb 0x405c65
push dword [ebp - 0x168]
call fcn.00494c0b
add esp, 4
xor eax, eax
mov dword [ebp - 0x154], 7
mov word [ebp - 0x168], ax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x158], 0
test eax, eax
je 0x405c93
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
test edi, edi
je 0x405ca0
push edi
call fcn.00495300
add esp, 4
mov eax, dword [ebp - 0x1a4]
test eax, eax
je 0x405cb1
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp - 0x198]
test edi, edi
je 0x405cc2
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00494c10
mov esp, ebp
pop ebp
ret 8