Function at 0x40de40
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 0x45073c
mov eax, dword fs:[0]
push eax
sub esp, 0x8f0
mov eax, dword [0x460adc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
lea ecx, [ebp - 0x8fc]
push ecx
mov dword [ebp - 0x8ec], eax
call dword [sym.imp.SensApi.dll_IsNetworkAlive]
test eax, eax
jne 0x40de91
xor al, al
jmp 0x40e33b
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
push 0x456df8
call dword [sym.imp.WININET.dll_InternetOpenW]
push 0xffffffffffffffff
push ebx
xor edx, edx
mov edi, 7
push esi
lea ecx, [ebp - 0x830]
mov dword [ebp - 0x8e8], eax
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x820], ebx
mov word [ebp - 0x830], dx
call fcn.00402a70
mov al, 1
mov dword [ebp - 4], ebx
mov dword [ebp - 0x8f0], 4
mov byte [ebp - 0x8de], al
mov byte [ebp - 0x8dd], al
lea esp, [esp]
xor ecx, ecx
xor edx, edx
mov dword [ebp - 0x8c8], edi
mov dword [ebp - 0x8cc], ebx
mov word [ebp - 0x8dc], cx
mov dword [ebp - 0x8a8], edi
mov dword [ebp - 0x8ac], ebx
mov word [ebp - 0x8bc], dx
mov dword [ebp - 0x88c], edi
mov dword [ebp - 0x890], ebx
mov word [ebp - 0x8a0], cx
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x8e4], esp
mov byte [ebp - 4], al
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x830]
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
lea esi, [ebp - 0x8dc]
mov word [ecx], dx
call fcn.00402a70
call fcn.0040f6c0
mov eax, dword [ebp - 0x8dc]
mov edi, 8
cmp dword [ebp - 0x8c8], edi
jae 0x40df73
mov eax, esi
mov ecx, dword [ebp - 0x8c0]
mov edx, dword [ebp - 0x8e8]
push ebx
push ebx
push 3
push ebx
push ebx
push ecx
push eax
push edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov esi, eax
mov dword [ebp - 0x8e4], esi
cmp esi, ebx
je 0x40e2db
lea eax, [ebp - 0x8bc]
push eax
lea ecx, [ebp - 0x868]
push ecx
lea ebx, [ebp - 0x8a0]
call fcn.0040b910
add esp, 8
cmp dword [eax + 0x14], edi
jb 0x40dfc1
mov eax, dword [eax]
xor edi, edi
push edi
push 0x200000
push edi
push edi
push edi
push eax
push 0x456e84
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
cmp dword [ebp - 0x854], 8
mov ebx, eax
jb 0x40dff3
mov edx, dword [ebp - 0x868]
push edx
call fcn.004204e8
add esp, 4
xor eax, eax
mov dword [ebp - 0x854], 7
mov dword [ebp - 0x858], edi
mov word [ebp - 0x868], ax
cmp ebx, edi
je 0x40e2e3
push edi
push edi
push edi
push edi
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
cmp eax, edi
je 0x40e2ec
push edi
lea ecx, [ebp - 0x8f0]
push ecx
lea edx, [ebp - 0x8f8]
push edx
push 0x20000013
push ebx
mov dword [ebp - 0x8f4], 0x800
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov eax, dword [ebp - 0x8f8]
cmp eax, 0x12e
jne 0x40e270
push 0x800
lea eax, [ebp - 0x814]
push edi
push eax
call fcn.00422fb0
add esp, 0xc
push edi
lea ecx, [ebp - 0x8f4]
push ecx
lea edx, [ebp - 0x814]
push edx
push 0x16
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
xor eax, eax
mov word [ebp - 0x84c], ax
lea eax, [ebp - 0x814]
mov dword [ebp - 0x838], 7
mov dword [ebp - 0x83c], edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x40e0b0
sub eax, edx
sar eax, 1
push eax
lea ecx, [ebp - 0x814]
push ecx
lea ecx, [ebp - 0x84c]
call fcn.00403280
push 0xa
push str.Location:
lea edx, [ebp - 0x84c]
push edx
xor eax, eax
mov byte [ebp - 4], 2
call fcn.00404e40
push 2
lea esi, [eax + 0xa]
push 0x456418
lea eax, [ebp - 0x84c]
push eax
mov eax, esi
call fcn.00404e40
sub eax, esi
push eax
push esi
lea ecx, [ebp - 0x884]
push ecx
lea ecx, [ebp - 0x84c]
call fcn.00402520
mov esi, eax
lea edx, [ebp - 0x830]
cmp edx, esi
je 0x40e198
cmp dword [ebp - 0x81c], 8
jb 0x40e13d
mov eax, dword [ebp - 0x830]
push eax
call fcn.004204e8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x81c], 7
mov dword [ebp - 0x820], edi
mov word [ebp - 0x830], cx
cmp dword [esi + 0x14], 8
jae 0x40e176
mov eax, dword [esi + 0x10]
lea edx, [eax + eax + 2]
push edx
lea eax, [ebp - 0x830]
push esi
push eax
call fcn.00420680
add esp, 0xc
jmp 0x40e180
mov ecx, dword [esi]
mov dword [ebp - 0x830], ecx
mov dword [esi], edi
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x820], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x81c], eax
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], edi
cmp dword [ebp - 0x870], 8
jb 0x40e1b0
mov ecx, dword [ebp - 0x884]
push ecx
call fcn.004204e8
add esp, 4
cmp dword [ebp - 0x838], 8
jb 0x40e1c8
mov edx, dword [ebp - 0x84c]
push edx
call fcn.004204e8
add esp, 4
mov esi, dword [ebp - 0x8e4]
push ebx
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
call ebx
push esi
call ebx
mov esi, 8
mov byte [ebp - 4], 0
cmp dword [ebp - 0x88c], esi
jb 0x40e1fa
mov eax, dword [ebp - 0x8a0]
push eax
call fcn.004204e8
add esp, 4
xor ecx, ecx
mov ebx, 7
mov dword [ebp - 0x88c], ebx
mov dword [ebp - 0x890], edi
mov word [ebp - 0x8a0], cx
cmp dword [ebp - 0x8a8], esi
jb 0x40e22b
mov edx, dword [ebp - 0x8bc]
push edx
call fcn.004204e8
add esp, 4
xor eax, eax
mov dword [ebp - 0x8a8], ebx
mov dword [ebp - 0x8ac], edi
mov word [ebp - 0x8bc], ax
cmp dword [ebp - 0x8c8], esi
jb 0x40e257
mov ecx, dword [ebp - 0x8dc]
push ecx
call fcn.004204e8
add esp, 4
cmp byte [ebp - 0x8de], 0
je 0x40e310
xor ebx, ebx
mov al, 1
lea edi, [ebx + 7]
jmp 0x40def0
cmp eax, 0xc8
jne 0x40e2cf
cmp dword [ebp - 0x81c], 8
mov eax, dword [ebp - 0x830]
jae 0x40e28c
lea eax, [ebp - 0x830]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ecx, eax
lea esi, [ecx + 2]
jmp 0x40e2a0
mov dx, word [ecx]
add ecx, 2
cmp dx, di
jne 0x40e2a0
sub ecx, esi
sar ecx, 1
push ecx
mov ecx, dword [ebp - 0x8ec]
push eax
call fcn.00403280
mov byte [ebp - 0x8dd], 1
mov byte [ebp - 0x8de], 0
jmp 0x40e1c8
mov byte [ebp - 0x8de], 0
jmp 0x40e1ce
mov byte [ebp - 0x8dd], bl
jmp 0x40e305
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x40e2fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call edi
push esi
call edi
mov byte [ebp - 0x8dd], 0
lea esi, [ebp - 0x8dc]
call fcn.0040e360
mov edx, dword [ebp - 0x8e8]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
cmp dword [ebp - 0x81c], 8
jb 0x40e335
mov eax, dword [ebp - 0x830]
push eax
call fcn.004204e8
add esp, 4
mov al, byte [ebp - 0x8dd]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004204f3
mov esp, ebp
pop ebp
ret 4