Function at 0x408e90
Capabilities:
Connect to http server
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push 0x9c
mov eax, 0x4251b5
call fcn.00416b41
mov ebx, ecx
mov ecx, dword [ebp + 0x1c]
xor edx, edx
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
or dword [ebp - 0x88], 0xffffffff
mov dword [ebp - 0xa0], ecx
xor ecx, ecx
mov dword [ebp - 0x48], 7
mov dword [ebp - 0x4c], edx
mov word [ebp - 0x5c], cx
mov dword [ebp - 4], edx
mov dword [ebp - 0x60], 7
mov dword [ebp - 0x64], edx
mov word [ebp - 0x74], cx
lea ecx, [ebp - 0x7d]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x74]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push eax
call fcn.00408aaa
test al, al
je 0x409311
push ecx
mov ecx, ebx
call fcn.00408a62
test al, al
je 0x409311
movzx edx, byte [ebp - 0x7d]
lea ecx, [ebp - 0x5c]
xor eax, eax
mov dword [ebp - 0x8c], 0x1bb
cmp byte [ebx], al
push eax
push eax
push 3
push eax
cmovne edx, eax
cmp dword [ebp - 0x48], 8
push eax
cmovae ecx, dword [ebp - 0x5c]
test dl, dl
push 0x50
pop eax
cmovne eax, dword [ebp - 0x8c]
movzx eax, ax
push eax
push ecx
push dword [ebx + 0x7c]
mov dword [ebp - 0x84], edx
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [ebp - 0x8c], eax
test eax, eax
je 0x4092e3
lea ecx, [ebx + 0x4c]
cmp dword [ecx + 0x14], 8
jb 0x408f6a
mov ecx, dword [ecx]
and dword [ebp - 0xa4], 0
xor eax, eax
and dword [ebp - 0x34], 0
mov dword [ebp - 0xa8], ecx
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
mov eax, dword [ebp + 0xc]
movzx eax, al
mov byte [ebp - 4], 2
dec eax
je 0x408fa8
push 0x42da68
call fcn.00413c34
pop ecx
push eax
push 0x42da68
jmp 0x408fb9
push str.POST
call fcn.00413c34
pop ecx
push eax
push str.POST
lea ecx, [ebp - 0x44]
call fcn.00405d76
lea eax, [ebx + 0x64]
cmp dword [eax + 0x14], 8
mov dword [ebp - 0x7c], eax
jb 0x408fd2
mov eax, dword [eax]
mov dword [ebp - 0x7c], eax
cmp dword [ebp - 0x60], 8
lea edx, [ebp - 0x74]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x78], 0x800000
cmovae edx, dword [ebp - 0x74]
cmp dword [ebp - 0x30], 8
push 0
cmovae ecx, dword [ebp - 0x44]
xor eax, eax
cmp byte [ebp - 0x84], al
cmovne eax, dword [ebp - 0x78]
or eax, 0x8404f700
push eax
lea eax, [ebp - 0xa8]
push eax
push 0
push dword [ebp - 0x7c]
push edx
push ecx
push dword [ebp - 0x8c]
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov dword [ebp - 0x7c], eax
test eax, eax
je 0x409295
test esi, esi
je 0x409031
mov eax, dword [esi + 0x10]
jmp 0x409033
xor eax, eax
test esi, esi
je 0x409041
cmp dword [esi + 0x14], 0x10
jb 0x409043
mov esi, dword [esi]
jmp 0x409043
xor esi, esi
mov ecx, dword [ebx + 0x44]
add ebx, 0x34
cmp dword [ebx + 0x14], 8
jb 0x409051
mov ebx, dword [ebx]
push eax
push esi
push ecx
push ebx
mov ebx, dword [ebp - 0x7c]
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x40924a
push 0
lea eax, [ebp - 0x90]
mov dword [ebp - 0x90], 4
push eax
lea eax, [ebp - 0x88]
push eax
push 0x20000013
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4090c5
or dword [ebp - 0x88], 0xffffffff
mov esi, str.HttpQueryInfo:statusCode
and dword [ebp - 0x1c], eax
push esi
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.00413c34
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405d76
mov byte [ebp - 4], 3
jmp 0x409275
xor ecx, ecx
mov esi, ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0x94], ecx
push ecx
lea eax, [ebp - 0x84]
mov byte [ebp - 4], 4
push eax
push ecx
push 0x15
push ebx
mov dword [ebp - 0x84], ecx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
test eax, eax
jne 0x4091bf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f76
je 0x4091bf
push dword [ebp - 0x84]
call fcn.004164a6
mov dword [ebp - 0x78], eax
pop ecx
test eax, eax
je 0x4091bf
push esi
lea ecx, [ebp - 0x84]
push ecx
push eax
push 0x15
push ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoW]
mov esi, dword [ebp - 0x78]
test eax, eax
je 0x4091a5
mov eax, dword [ebp - 0x84]
test eax, eax
je 0x4091a5
and dword [ebp - 0x1c], 0
xor ecx, ecx
shr eax, 1
push eax
mov word [ebp - 0x2c], cx
lea ecx, [ebp - 0x2c]
push esi
mov dword [ebp - 0x18], 7
call fcn.00405d76
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea edx, [ebp - 0x9c]
mov eax, dword [ebp - 0x1c]
cmovae ecx, dword [ebp - 0x2c]
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x2c]
cmovae ecx, dword [ebp - 0x2c]
push eax
push ecx
call fcn.0040818a
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 4
call fcn.00405e0a
push esi
call fcn.00416538
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00409443
mov esi, dword [ebp - 0x7c]
test edi, edi
je 0x40923d
and dword [ebp - 0x78], 0
push 0x10000
mov dword [edi + 0x38], esi
call fcn.004164a6
mov esi, eax
pop ecx
test esi, esi
je 0x40923d
jmp 0x40920c
cmp dword [ebp - 0x78], 0
jbe 0x409236
push dword [ebp - 0x78]
mov ecx, edi
push esi
call fcn.004098b2
test al, al
je 0x40922f
mov eax, dword [ebp - 0xa0]
test eax, eax
je 0x409208
push dword [edi + 0x14]
push dword [ebp - 0x7c]
call eax
test al, al
jne 0x409223
and dword [ebp - 0x78], 0
lea eax, [ebp - 0x78]
push eax
push 0x10000
push esi
push ebx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x4091dd
jmp 0x409236
mov dword [ebp - 0x88], 0xfffffffe
jmp 0x409236
or dword [ebp - 0x88], 0xffffffff
push esi
call fcn.00416538
pop ecx
lea ecx, [ebp - 0x9c]
call fcn.00408152
jmp 0x40928a
and dword [ebp - 0x1c], 0
xor eax, eax
mov esi, str.HttpSendRequest
mov dword [ebp - 0x18], 7
push esi
mov word [ebp - 0x2c], ax
call fcn.00413c34
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405d76
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
push eax
call fcn.00409394
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405e0a
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor ebx, ebx
jmp 0x4092d5
xor eax, eax
mov dword [ebp - 0x18], 7
mov esi, str.HttpOpenRequest
mov word [ebp - 0x2c], ax
xor ebx, ebx
push esi
mov dword [ebp - 0x1c], ebx
call fcn.00413c34
pop ecx
push eax
push esi
lea ecx, [ebp - 0x2c]
call fcn.00405d76
lea eax, [ebp - 0x2c]
mov byte [ebp - 4], 7
push eax
call fcn.00409394
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00405e0a
push dword [ebp - 0x8c]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x409346
xor eax, eax
mov dword [ebp - 0x30], 7
mov esi, str.InternetConnect
mov word [ebp - 0x44], ax
xor ebx, ebx
push esi
mov dword [ebp - 0x34], ebx
call fcn.00413c34
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00405d76
mov byte [ebp - 4], 8
jmp 0x40933d
xor eax, eax
mov dword [ebp - 0x30], 7
mov esi, str.OpenInternet_of_BadUrl
mov word [ebp - 0x44], ax
xor ebx, ebx
push esi
mov dword [ebp - 0x34], ebx
call fcn.00413c34
pop ecx
push eax
push esi
lea ecx, [ebp - 0x44]
call fcn.00405d76
mov byte [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
call fcn.00409394
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.00405e0a
test edi, edi
je 0x40936e
cmp byte [edi + 0xc], 2
jne 0x40936e
cmp dword [edi + 0x10], 0xffffffff
je 0x40936e
push dword [edi + 0x10]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x10], 0xffffffff
mov esi, dword [ebp - 0x88]
lea ecx, [ebp - 0x74]
push ebx
push 1
call fcn.00405e0a
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.00405e0a
mov eax, esi
call fcn.00416af0
ret 0x18