Function at 0x4133a0
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 0x569d8d
mov eax, dword fs:[0]
push eax
sub esp, 0x94c
mov eax, dword [0x5bfc00]
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.00522690
add esp, 0xc
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413b1b
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.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413b1b
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.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413b1b
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.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413b1b
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.00439549
test eax, eax
jne 0x4137c0
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413b1b
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 0x599e94
push ecx
mov byte [ebp - 4], 4
call fcn.00403300
add esp, 0xc
push 0x599330
push str.http:__
lea ecx, [ebp - 0x90c]
call fcn.0040e6d0
push 0x599330
push str.Http:__
lea ecx, [ebp - 0x90c]
call fcn.0040e6d0
push 0x599330
push str.HTTP:__
lea ecx, [ebp - 0x90c]
call fcn.0040e6d0
mov ebx, dword [ebp - 0x90c]
cmp dword [ebx - 0xc], 0
jl 0x41358a
push 0x59a26c
push ebx
call fcn.00522301
add esp, 8
test eax, eax
je 0x41358a
sub eax, ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x413611
mov esi, dword [ebp - 0x904]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4135fa
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4135ea
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4135ea
push eax
call fcn.00402d80
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4135ca
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
push 0
add ebx, 0x10
push 0x599330
lea ecx, [ebp - 0x908]
mov dword [ebp - 0x904], ebx
call fcn.00402e50
jmp 0x413762
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [ebp - 0x904]
call fcn.00402e50
push 0
push 0x599330
lea ecx, [ebp - 0x908]
call fcn.00402e50
jmp 0x413762
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 0x4136a5
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x41368f
mov edx, dword [ebp - 0x918]
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x41368f
push edx
call fcn.00402d80
mov dword [ebp - 0x91c], eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebx], eax
dec eax
test eax, eax
jg 0x41367e
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 0x41369f
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x904]
call fcn.00402e50
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 0x41371f
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x41370f
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x41370f
push eax
call fcn.00402d80
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4136fe
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 0x41371f
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x908]
call fcn.00402e50
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 0x413745
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 0x413762
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
push 0
push 0x599330
lea ecx, [ebp - 0x910]
call fcn.00402e50
push 0
push 0x599330
lea ecx, [ebp - 0x914]
call fcn.00402e50
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 0x4137c0
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.00524a80
lea edx, [ebp - 0xdc]
push str.Mozilla_4.0__compatible__MSIE_5.00__Windows_98_
push edx
call fcn.00523a03
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 0x413b3a
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 0x413b25
mov ecx, dword [ebp - 0x908]
push 0
push 0xe4200100
push 0
push 0x599330
push 0
push ecx
push 0x59a2a0
push esi
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ebx, eax
test ebx, ebx
je 0x413b2e
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 0x4138b0
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 0x413bf7
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x413b3a
push 0x823
lea eax, [ebp - 0x8ff]
push 0
push eax
mov byte [ebp - 0x900], 0
call fcn.00524a80
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 0x413bf7
lea eax, [ebp - 0x900]
push eax
call fcn.005230ee
add esp, 4
cmp eax, 0xc8
je 0x413c15
cmp eax, 0x194
je 0x413bf7
cmp eax, 0x12d
je 0x413972
cmp eax, 0x12e
je 0x413972
cmp eax, 0x12f
jne 0x413b3a
push 0x823
lea ecx, [ebp - 0x8ff]
push 0
push ecx
mov byte [ebp - 0x900], 0
call fcn.00524a80
add esp, 0xc
mov dword [ebp - 0x91c], esi
call fcn.004261e2
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413b1b
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.00522690
mov eax, esi
add esp, 0xc
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413a0f
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 0x413a77
call fcn.00428cc8
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 0x413a71
push 0
push 0
push 0
lea ecx, [ebp - 0x958]
push ecx
call esi
test eax, eax
jne 0x413a45
jmp 0x413a77
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 0x413a9d
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 0x413ac3
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 0x413ae9
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 0x4133f6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4133f6
push 0x80004005
call fcn.00403230
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x413b3a
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 0x413b60
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 0x413b86
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 0x413bac
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 0x413bd5
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.00521a0b
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 0x413b38
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 0x413b3a