Function at 0x4135b0
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 0x56b906
mov eax, dword fs:[0]
push eax
mov eax, 0x1374
call fcn.005295a0
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]
mov dword [ebp - 0x1360], eax
xor eax, eax
mov dword [ebp - 0x1358], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413600
push str.tmp.exe
lea ecx, [ebp - 0x134c]
call fcn.00401ed0
mov byte [ebp - 4], 1
jmp 0x413620
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413d43
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x132c], eax
mov byte [ebp - 4], 2
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413d43
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1330], eax
mov byte [ebp - 4], 3
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413d43
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1334], eax
mov byte [ebp - 4], 4
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413d43
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1338], eax
push 0
lea ecx, [ebp - 0x1338]
push ecx
lea edx, [ebp - 0x1334]
push edx
lea eax, [ebp - 0x1354]
push eax
lea ecx, [ebp - 0x1330]
push ecx
lea edx, [ebp - 0x132c]
push edx
lea eax, [ebp - 0x1350]
mov byte [ebp - 4], 5
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call fcn.0043b084
test eax, eax
jne 0x4139e9
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413d43
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [ebp - 0x1328], eax
mov byte [ebp - 4], 6
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x1328]
push 0x59be84
push edx
call fcn.00403220
add esp, 0xc
push 0x59b320
push str.http:__
lea ecx, [ebp - 0x1328]
call fcn.0040e640
push 0x59b320
push str.Http:__
lea ecx, [ebp - 0x1328]
call fcn.0040e640
push 0x59b320
push str.HTTP:__
lea ecx, [ebp - 0x1328]
call fcn.0040e640
mov ebx, dword [ebp - 0x1328]
cmp dword [ebx - 0xc], 0
jl 0x4137b1
push 0x59c268
push ebx
call fcn.00523e0f
add esp, 8
test eax, eax
je 0x4137b1
sub eax, ebx
mov edi, eax
cmp edi, 0xffffffff
jne 0x413838
mov esi, dword [ebp - 0x132c]
lea eax, [ebx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x413821
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x413811
mov ecx, dword [eax]
cmp ecx, dword [esi]
jne 0x413811
push eax
call fcn.00402c90
add esp, 4
mov ebx, eax
or edx, 0xffffffff
lock xadd dword [edi], edx
dec edx
test edx, edx
jg 0x4137f1
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
push 0
add ebx, 0x10
push 0x59b320
lea ecx, [ebp - 0x1330]
mov dword [ebp - 0x132c], ebx
call fcn.00402d60
jmp 0x41398b
mov eax, dword [ebx - 0xc]
push eax
push ebx
lea ecx, [ebp - 0x132c]
call fcn.00402d60
push 0
push 0x59b320
lea ecx, [ebp - 0x1330]
call fcn.00402d60
jmp 0x41398b
push edi
lea eax, [ebp - 0x1344]
push eax
lea ecx, [ebp - 0x1328]
call fcn.004013d0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1344]
mov esi, dword [ebp - 0x132c]
lea ebx, [eax - 0x10]
add esi, 0xfffffff0
mov dword [ebp - 0x133c], ebx
cmp ebx, esi
je 0x4138ce
cmp dword [esi + 0xc], 0
lea ebx, [esi + 0xc]
jl 0x4138b8
mov ecx, dword [ebp - 0x133c]
mov edx, dword [ecx]
cmp edx, dword [esi]
jne 0x4138b8
mov eax, ecx
push eax
call fcn.00402c90
add esp, 4
mov dword [ebp - 0x1340], eax
or ecx, 0xffffffff
lock xadd dword [ebx], ecx
dec ecx
test ecx, ecx
jg 0x4138a7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov ecx, dword [ebp - 0x1340]
add ecx, 0x10
mov dword [ebp - 0x132c], ecx
jmp 0x4138c8
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x132c]
call fcn.00402d60
mov ebx, dword [ebp - 0x133c]
push edi
lea edx, [ebp - 0x1348]
push edx
lea ecx, [ebp - 0x1328]
call fcn.004013a0
mov byte [ebp - 4], 8
mov ecx, dword [eax]
mov esi, dword [ebp - 0x1330]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x413948
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x413938
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x413938
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 0x413927
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [ebp - 0x1330], ebx
mov ebx, dword [ebp - 0x133c]
jmp 0x413948
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [ebp - 0x1330]
call fcn.00402d60
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1348]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41396e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41398b
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
push 0
push 0x59b320
lea ecx, [ebp - 0x1334]
call fcn.00402d60
push 0
push 0x59b320
lea ecx, [ebp - 0x1338]
call fcn.00402d60
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1328]
add eax, 0xfffffff0
mov dword [ebp - 0x1354], 0x50
mov dword [ebp - 0x1350], 3
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4139e9
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 - 0x1340], edi
test edi, edi
je 0x413ea5
push 4
lea ecx, [ebp - 0x1364]
push ecx
push 6
push edi
mov dword [ebp - 0x1364], 0x3a98
call dword [sym.imp.WININET.dll_InternetSetOptionA]
mov edx, dword [ebp - 0x1350]
mov eax, dword [ebp - 0x1338]
mov ecx, dword [ebp - 0x1334]
push 0
push 0
push edx
mov edx, dword [ebp - 0x1354]
push eax
mov eax, dword [ebp - 0x132c]
push ecx
push edx
push eax
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
mov esi, eax
mov dword [ebp - 0x133c], esi
test esi, esi
je 0x413d4d
mov ecx, dword [ebp - 0x1330]
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
mov dword [ebp - 0x1358], ebx
test ebx, ebx
je 0x413d59
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]
jmp 0x413ae0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413ae0
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 0x413e8a
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x413ea5
push 0x823
lea eax, [ebp - 0xaff]
push 0
push eax
mov byte [ebp - 0xb00], 0
call fcn.00526590
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoA]
add esp, 0xc
push 0
lea ecx, [ebp - 0x1328]
push ecx
lea edx, [ebp - 0xb00]
push edx
push 0x13
mov edi, 0x824
push ebx
mov dword [ebp - 0x1328], edi
call esi
test eax, eax
je 0x413e8a
lea eax, [ebp - 0xb00]
push eax
call fcn.00524bfd
add esp, 4
cmp eax, 0xc8
je 0x413d68
cmp eax, 0x194
je 0x413e8a
cmp eax, 0x12d
je 0x413ba2
cmp eax, 0x12e
je 0x413ba2
cmp eax, 0x12f
jne 0x413ea5
push 0x823
lea ecx, [ebp - 0xaff]
push 0
push ecx
mov byte [ebp - 0xb00], 0
call fcn.00526590
add esp, 0xc
mov dword [ebp - 0x1328], edi
call fcn.00427d68
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x413d43
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
push 0
lea ecx, [ebp - 0x1328]
push ecx
push 0
push 0x21
push ebx
mov edi, eax
call esi
push 0
lea edx, [ebp - 0x1328]
push edx
lea eax, [ebp - 0xb00]
push eax
push 0x21
push ebx
call esi
xor eax, eax
jmp 0x413c10
mov cl, byte [ebp + eax - 0xb00]
inc eax
test cl, cl
jne 0x413c10
mov eax, edi
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413c37
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 - 0x133c]
push ecx
call esi
mov edx, dword [ebp - 0x1340]
push edx
call esi
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x1380]
push eax
call esi
test eax, eax
je 0x413ca2
lea ecx, [ecx]
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 0x413c9c
push 0
push 0
push 0
lea ecx, [ebp - 0x1380]
push ecx
call esi
test eax, eax
jne 0x413c70
jmp 0x413ca2
call dword [sym.imp.USER32.dll_PostQuitMessage]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1338]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413cc8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1334]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413cee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1330]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413d14
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 - 0x132c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413620
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x413620
push 0x80004005
call fcn.00403150
push edi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
jmp 0x413ea5
push esi
mov esi, dword [sym.imp.WININET.dll_InternetCloseHandle]
call esi
push edi
jmp 0x413ea3
push 0x1ff
lea ecx, [ebp - 0x2db]
push 0
push ecx
mov byte [ebp - 0x2dc], 0
call fcn.00526590
add esp, 0xc
lea edx, [ebp - 0x1348]
push edx
lea eax, [ebp - 0x1344]
push eax
lea ecx, [ebp - 0x2dc]
push ecx
push 0x2f
push ebx
mov dword [ebp - 0x1344], 0x200
mov dword [ebp - 0x1348], 0
call esi
test eax, eax
je 0x413e8a
lea edx, [ebp - 0x2dc]
push edx
lea ecx, [ebp - 0x1328]
call fcn.00401ed0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x1328]
cmp dword [eax - 0xc], 0
jle 0x413e64
push 0x3d
push eax
call fcn.00523ed6
add esp, 8
test eax, eax
je 0x413e64
sub eax, dword [ebp - 0x1328]
cmp eax, 0xffffffff
je 0x413e64
inc eax
push eax
lea eax, [ebp - 0x135c]
push eax
lea ecx, [ebp - 0x1328]
call fcn.004013a0
push eax
lea ecx, [ebp - 0x1328]
mov byte [ebp - 4], 0xa
call fcn.00402b20
lea ecx, [ebp - 0x135c]
mov byte [ebp - 4], 9
call fcn.00402fa0
lea ecx, [ebp - 0x1328]
call fcn.00405de0
mov ecx, eax
call fcn.00423420
lea ebx, [ebp - 0x1328]
call fcn.00423380
call fcn.00423320
mov ecx, ebx
push ecx
lea ecx, [ebp - 0x134c]
call fcn.00402b20
mov ebx, dword [ebp - 0x1358]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x1328]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x413e8a
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 - 0x133c]
push ecx
call esi
mov edx, dword [ebp - 0x1340]
push edx
call esi
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1338]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ecb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1334]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413ef1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1330]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f17
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 - 0x132c]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f3d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x134c]
add eax, 0xfffffff0
push eax
call fcn.00402c90
mov esi, dword [ebp - 0x1360]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x134c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413f80
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 + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413fa6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
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