Function at 0x403cd0
Capabilities:
Check http status code
Connect to http server
Create http request
Get http content length
Query remote server for available data
Read data from internet
Receive data
Send data
Send http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55719b
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x5be984]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x9c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0xa0], ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x94], eax
mov dword [ebp - 0x98], ecx
test esi, esi
jne 0x403d36
test eax, eax
jne 0x403d36
xor al, al
jmp 0x404351
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x403d4e
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x403d4e
mov eax, dword [ecx]
push str.ck_Wgu
call dword [eax + 4]
mov ecx, esi
mov dword [ebp - 0x48], 0
xor eax, eax
mov dword [ebp - 0x44], 7
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x403d67
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x58]
call fcn.004048f0
lea eax, [ebp - 0x58]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x88]
mov ecx, ebx
push eax
call fcn.00403130
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 2
cmp edx, 8
jb 0x403dd7
mov ecx, dword [ebp - 0x58]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x403dcd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40436f
push edx
push ecx
call fcn.004845fc
add esp, 8
xor cl, cl
mov dword [ebp - 0x30], 0
xor eax, eax
mov dword [ebp - 0x90], ecx
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp dword [ebp - 0x74], 8
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 4
push ecx
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp - 0xa8]
lea eax, [ebp - 0x88]
cmovae eax, dword [ebp - 0x88]
push ecx
push eax
mov ecx, ebx
call fcn.00404390
test al, al
je 0x404256
cmp dword [ebp - 0xa8], 3
jne 0x404256
test edi, edi
je 0x403e5e
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x403e5e
mov eax, dword [ecx]
push 0x573e80
call dword [eax + 4]
cmp dword [ebx + 0x50], 8
lea eax, [ebx + 0x3c]
jb 0x403e69
mov eax, dword [eax]
cmp dword [ebx + 0x38], 8
lea ecx, [ebx + 0x24]
jb 0x403e74
mov ecx, dword [ecx]
cmp dword [ebx + 0x20], 8
lea edx, [ebx + 0xc]
jb 0x403e7f
mov edx, dword [edx]
push 0
push eax
push ecx
push 0
push edx
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [ebp - 0xa4], eax
test eax, eax
je 0x404256
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionW]
lea edi, [ebx + 0x54]
push 4
push edi
push 2
push eax
call esi
push 4
push edi
push 7
push dword [ebp - 0xa4]
call esi
push 4
push edi
mov edi, dword [ebp - 0xa4]
push 8
push edi
call esi
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
push 0
cmovae eax, dword [ebp - 0x40]
push 0
push 3
push 0
push 0
push 0x50
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectW]
mov edx, eax
mov dword [ebp - 0xb0], edx
test edx, edx
je 0x40424c
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x403f13
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x403f13
mov eax, dword [ecx]
push 0x573e98
call dword [eax + 4]
mov edx, dword [ebp - 0xb0]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x98]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0xb8], str.Accept:__
mov dword [ebp - 0xb4], 0
cmp dword [ecx + 0x14], 8
jb 0x403f40
mov ecx, dword [ecx]
push 0
push 0x84010100
lea esi, [ebp - 0xb8]
push esi
push 0
push str.HTTP_1.0
push eax
push ecx
push edx
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
mov esi, eax
mov dword [ebp - 0x8c], esi
test esi, esi
je 0x404238
push str.Content_Type:_application_x_www_form_urlencoded
lea ecx, [ebp - 0x70]
call fcn.00402910
push dword [ebp + 0x18]
cmp dword [ebp - 0x5c], 8
lea ecx, [ebp - 0x70]
push dword [ebp - 0xa0]
cmovae ecx, dword [ebp - 0x70]
push dword [ebp - 0x60]
mov byte [ebp - 4], 5
push ecx
push esi
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
je 0x404221
test edi, edi
je 0x403fbb
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x403fbb
mov eax, dword [ecx]
push 0x573ff0
call dword [eax + 4]
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
lea eax, [ebp - 0xac]
push 0
push eax
lea eax, [ebp - 0xa8]
mov dword [ebp - 0xa8], 0xc8
push eax
push 0x20000013
push esi
mov dword [ebp - 0xac], 4
call edi
test eax, eax
je 0x404025
cmp dword [ebp - 0xa8], 0x194
jne 0x404025
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push dword [ebp - 0xb0]
call esi
push dword [ebp - 0xa4]
call esi
lea ecx, [ebp - 0x70]
call fcn.004029d0
xor bl, bl
jmp 0x40427a
push 0
lea eax, [ebp - 0xac]
mov dword [ebp - 0xac], 4
push eax
push dword [ebp - 0x9c]
push 0x20000005
push esi
call edi
test eax, eax
je 0x4040ad
cmp dword [ebp + 0x20], 0
mov edi, dword [ebp - 0x9c]
je 0x404064
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x404064
mov eax, dword [ecx]
push dword [edi]
call dword [eax + 0x10]
push dword [edi]
call fcn.0048460a
mov ecx, dword [ebp - 0x94]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x404221
lea ecx, [ebp - 0x98]
push ecx
push dword [edi]
push eax
push esi
call dword [sym.imp.WININET.dll_InternetReadFile]
mov edx, dword [ebp - 0x98]
cmp dword [edi], edx
sete cl
mov dword [ebp - 0x90], ecx
je 0x404221
mov dword [edi], edx
jmp 0x404221
cmp dword [ebp + 0x20], 0
je 0x4040c1
mov ecx, dword [ebx + 4]
test ecx, ecx
je 0x4040c1
mov eax, dword [ecx]
push 0xffffffffffffffff
call dword [eax + 0x10]
push 0x2000
mov dword [ebp - 0x90], 0x2000
xor edi, edi
call fcn.0048460a
mov ecx, dword [ebp - 0x94]
add esp, 4
mov dword [ecx], eax
test eax, eax
je 0x4041ff
push 0x2000
push edi
push eax
call fcn.004f0120
mov eax, dword [ebp - 0x94]
add esp, 0xc
mov dword [ebp - 0x98], edi
mov esi, dword [eax]
lea eax, [ebx + 8]
push edi
push edi
push eax
push dword [ebp - 0x8c]
mov dword [ebp - 0xa0], esi
call dword [sym.imp.WININET.dll_InternetQueryDataAvailable]
lea eax, [ebp - 0x98]
push eax
push dword [ebx + 8]
push esi
push dword [ebp - 0x8c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x4041f9
nop
mov edx, dword [ebp - 0x98]
test edx, edx
je 0x4041f9
mov eax, dword [ebp - 0x90]
add edi, edx
mov ecx, dword [ebx + 8]
sub eax, edi
cmp eax, ecx
jae 0x4041c3
mov eax, dword [ebp - 0x90]
add eax, ecx
push eax
mov dword [ebp - 0x90], eax
call fcn.0048460a
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x94]
test esi, esi
je 0x4041ea
push edi
push dword [eax]
push esi
call fcn.004ef620
mov eax, dword [ebp - 0x94]
add esp, 0xc
mov eax, dword [eax]
test eax, eax
je 0x4041b8
push eax
call fcn.00484613
mov eax, dword [ebp - 0x94]
add esp, 4
mov dword [eax], esi
add esi, edi
mov ecx, dword [ebx + 8]
mov dword [ebp - 0xa0], esi
jmp 0x4041cb
mov esi, dword [ebp - 0xa0]
mov ecx, dword [ebx + 8]
jmp 0x4041cb
add esi, edx
mov dword [ebp - 0xa0], esi
lea eax, [ebp - 0x98]
push eax
push ecx
push esi
push dword [ebp - 0x8c]
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x404140
jmp 0x4041f9
mov eax, dword [eax]
test eax, eax
je 0x4041f9
push eax
call fcn.00484613
add esp, 4
mov esi, dword [ebp - 0x8c]
mov eax, dword [ebp - 0x9c]
test edi, edi
mov ecx, 1
mov dword [eax], edi
setne al
cmp dword [ebp + 0x24], 0
movzx eax, al
cmove eax, ecx
mov dword [ebp - 0x90], eax
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 4
call fcn.004029d0
jmp 0x40423e
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push dword [ebp - 0xb0]
call esi
mov edi, dword [ebp - 0xa4]
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x404274
mov ecx, dword [ebx + 4]
mov ebx, dword [ebp - 0x90]
test ecx, ecx
je 0x40427a
mov edx, dword [ecx]
movzx eax, bl
push eax
push 0
call dword [edx + 0x14]
jmp 0x40427a
mov ebx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x4042b4
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4042aa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404374
push edx
push ecx
call fcn.004845fc
add esp, 8
mov edx, dword [ebp - 0x2c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x404302
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4042f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x404379
push edx
push ecx
call fcn.004845fc
add esp, 8
mov edx, dword [ebp - 0x74]
xor eax, eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
mov word [ebp - 0x40], ax
cmp edx, 8
jb 0x40434f
mov ecx, dword [ebp - 0x88]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x404345
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40437e
push edx
push ecx
call fcn.004845fc
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00484a0d
mov esp, ebp
pop ebp
ret 0x20
call fcn.004faed4
call fcn.004faed4
call fcn.004faed4
call fcn.004faed4
int3