Function at 0x413fd0
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 0x56b85d
mov eax, dword fs:[0]
push eax
sub esp, 0x94c
mov eax, dword [0x5c1c00]
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 eax, dword [ebp + 8]
push 0x824
push eax
push ecx
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x92c], ecx
mov dword [ebp - 0x920], 0
call fcn.0052419e
add esp, 0xc
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41474b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x904], eax
mov dword [ebp - 4], 0
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41474b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x908], eax
mov byte [ebp - 4], 1
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41474b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x910], eax
mov byte [ebp - 4], 2
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41474b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x914], eax
mov esi, dword [ebp - 0x93c]
push 0
lea ecx, [ebp - 0x914]
push ecx
lea edx, [ebp - 0x910]
push edx
lea eax, [ebp - 0x924]
push eax
lea ecx, [ebp - 0x908]
push ecx
lea edx, [ebp - 0x904]
push edx
lea eax, [ebp - 0x928]
push eax
push esi
mov byte [ebp - 4], 3
call fcn.0043b084
test eax, eax
jne 0x4143f0
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41474b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x90c], eax
push esi
lea ecx, [ebp - 0x90c]
push 0x59be84
push ecx
mov byte [ebp - 4], 4
call fcn.00403220
add esp, 0xc
push 0x59b320
push str.http:__
lea ecx, [ebp - 0x90c]
call fcn.0040e640
push 0x59b320
push str.Http:__
lea ecx, [ebp - 0x90c]
call fcn.0040e640
push 0x59b320
push str.HTTP:__
lea ecx, [ebp - 0x90c]
call fcn.0040e640
mov ebx, dword [ebp - 0x90c]
cmp dword [ebx - 0xc], 0
jl 0x4141ba
push 0x59c268
push ebx
call fcn.00523e0f
add esp, 8
test eax, eax
je 0x4141ba
sub eax, ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x414241
mov esi, dword [ebp - 0x904]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41422a
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41421a
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41421a
push eax
call fcn.00402c90
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4141fa
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push 0
add ebx, 0x10
push 0x59b320
lea ecx, [ebp - 0x908]
mov dword [ebp - 0x904], ebx
call fcn.00402d60
jmp 0x414392
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [ebp - 0x904]
call fcn.00402d60
push 0
push 0x59b320
lea ecx, [ebp - 0x908]
call fcn.00402d60
jmp 0x414392
push edi
lea ecx, [ebp - 0x934]
push ecx
lea ecx, [ebp - 0x90c]
call fcn.004013d0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x934]
mov esi, dword [ebp - 0x904]
lea ebx, [eax - 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x918], ebx
cmp ebx, esi
je 0x4142d5
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4142bf
mov edx, dword [ebp - 0x918]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x4142bf
push edx
call fcn.00402c90
mov dword [ebp - 0x91c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x4142ae
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x91c]
add ecx, 0x10
mov dword [ebp - 0x904], ecx
jmp 0x4142cf
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x904]
call fcn.00402d60
mov ebx, dword [ebp - 0x918]
push edi
lea edx, [ebp - 0x930]
push edx
lea ecx, [ebp - 0x90c]
call fcn.004013a0
mov byte [ebp - 4], 6
mov ecx, dword [eax]
mov esi, dword [ebp - 0x908]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x41434f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41433f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41433f
push eax
call fcn.00402c90
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x41432e
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x908], ebx
mov ebx, dword [ebp - 0x918]
jmp 0x41434f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x908]
call fcn.00402d60
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x930]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414375
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 4
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414392
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
push 0
push 0x59b320
lea ecx, [ebp - 0x910]
call fcn.00402d60
push 0
push 0x59b320
lea ecx, [ebp - 0x914]
call fcn.00402d60
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x90c]
add eax, 0xfffffff0
mov dword [ebp - 0x924], 0x50
mov dword [ebp - 0x928], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4143f0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x7f
lea ecx, [ebp - 0xdb]
push 0
push ecx
mov byte [ebp - 0xdc], 0
call fcn.00526590
lea edx, [ebp - 0xdc]
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98_
push edx
call fcn.00525512
add esp, 0x14
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xdc]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov dword [ebp - 0x90c], edi
test edi, edi
je 0x41476a
push 4
lea ecx, [ebp - 0x938]
push ecx
push 6
push edi
mov dword [ebp - 0x938], 0x3a98
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edx, dword [ebp - 0x928]
mov eax, dword [ebp - 0x914]
mov ecx, dword [ebp - 0x910]
push 0
push 0
push edx
mov edx, dword [ebp - 0x924]
push eax
mov eax, dword [ebp - 0x904]
push ecx
push edx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x918], esi
test esi, esi
je 0x414755
mov ecx, dword [ebp - 0x908]
push 0
push 0xe4200100
push 0
push 0x59b320
push 0
push ecx
push 0x59c29c
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x41475e
mov ecx, 0x13
mov esi, str.Accept:___r_nUser_Agent:__Mozilla_4.0__compatible__MSIE_5.00__Windows_98__r_n
lea edi, [ebp - 0x5c]
lea eax, [ebp - 0x5c]
rep movsd dword es:[edi], dword [esi]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4144e0
push 0x20000000
sub eax, edx
push eax
lea edx, [ebp - 0x5c]
push edx
push ebx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
test eax, eax
je 0x414827
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x41476a
push 0x823
lea eax, [ebp - 0x8ff]
push 0
push eax
mov byte [ebp - 0x900], 0
call fcn.00526590
mov edi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x91c]
push ecx
lea edx, [ebp - 0x900]
push edx
push 0x13
mov esi, 0x824
push ebx
mov dword [ebp - 0x91c], esi
call edi
test eax, eax
je 0x414827
lea eax, [ebp - 0x900]
push eax
call fcn.00524bfd
add esp, 4
cmp eax, 0xc8
je 0x414845
cmp eax, 0x194
je 0x414827
cmp eax, 0x12d
je 0x4145a2
cmp eax, 0x12e
je 0x4145a2
cmp eax, 0x12f
jne 0x41476a
push 0x823
lea ecx, [ebp - 0x8ff]
push 0
push ecx
mov byte [ebp - 0x900], 0
call fcn.00526590
add esp, 0xc
mov dword [ebp - 0x91c], esi
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x41474b
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push 0
lea ecx, [ebp - 0x91c]
push ecx
push 0
push 0x21
push ebx
mov esi, eax
call edi
push 0
lea edx, [ebp - 0x91c]
push edx
lea eax, [ebp - 0x900]
push eax
push 0x21
push ebx
call edi
mov edx, dword [ebp - 0x92c]
push 0x824
lea ecx, [ebp - 0x900]
push ecx
push edx
call fcn.0052419e
mov eax, esi
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41463f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [ebp - 0x918]
push ecx
call esi
mov edx, dword [ebp - 0x90c]
push edx
call esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x958]
push eax
call esi
test eax, eax
je 0x4146a7
call fcn.0042a861
mov eax, dword [eax + 4]
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x5c]
call eax
push 0
test eax, eax
je 0x4146a1
push 0
push 0
push 0
lea ecx, [ebp - 0x958]
push ecx
call esi
test eax, eax
jne 0x414675
jmp 0x4146a7
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x914]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4146cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x910]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4146f3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x908]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414719
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x904]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414026
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x414026
push 0x80004005
call fcn.00403150
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x41476a
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
call esi
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x914]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414790
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x910]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4147b6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x908]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4147dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x904]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414805
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x920]
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.00523519
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [ebp - 0x918]
push ecx
call esi
mov edx, dword [ebp - 0x90c]
push edx
jmp 0x414768
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
push ebx
call esi
mov ecx, dword [ebp - 0x918]
push ecx
call esi
mov edx, dword [ebp - 0x90c]
push edx
call esi
mov dword [ebp - 0x920], 1
jmp 0x41476a