Function at 0x40ae90
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44477d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x4716e0]
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
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x18]
push eax
lea ecx, [ebp - 0x2ac]
mov dword [ebp - 0x298], 0xf
mov dword [ebp - 0x29c], 0
mov byte [ebp - 0x2ac], 0
call fcn.00401490
mov ecx, dword [ebx + 4]
sub ecx, dword [ebx]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
mov dword [ebp - 4], 0
mov dword [ebp - 0x2b4], edi
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
lea eax, [ebx + 0x30]
push eax
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x264]
push eax
mov byte [ebp - 4], 1
call fcn.0040a170
mov esi, eax
lea eax, [ebp - 0x228]
add esp, 0xc
cmp eax, esi
je 0x40af94
cmp dword [ebp - 0x214], 0x10
jb 0x40af6d
push dword [ebp - 0x228]
call fcn.0041572d
add esp, 4
push esi
lea ecx, [ebp - 0x228]
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
call fcn.00401100
cmp dword [ebp - 0x250], 0x10
jb 0x40afab
push dword [ebp - 0x264]
call fcn.0041572d
add esp, 4
test edi, edi
jle 0x40b4a7
push 1
push 0x45eb4c
lea ecx, [ebp - 0x228]
call fcn.00402780
mov eax, dword [ebp - 0x2b4]
xor edi, edi
test eax, eax
jle 0x40b4a7
dec eax
xor esi, esi
mov dword [ebp - 0x22c], eax
mov dword [ebp - 0x2b0], esi
mov eax, dword [ebx]
push 0xffffffffffffffff
add eax, esi
push 0
push eax
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x264], 0
call fcn.00401490
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x264]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ebp - 4], 2
mov byte [ecx], 0
call fcn.00401490
lea eax, [ebp - 0x294]
push eax
call fcn.0040a5b0
add esp, 0x1c
mov eax, dword [ebx + 0xc]
push 0xffffffffffffffff
add eax, esi
push 0
push eax
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 3
mov dword [ebp - 0x230], 0xf
mov dword [ebp - 0x234], 0
mov byte [ebp - 0x244], 0
call fcn.00401490
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x244]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ebp - 4], 4
mov byte [ecx], 0
call fcn.00401490
lea eax, [ebp - 0x27c]
push eax
call fcn.0040a5b0
lea eax, [ebp - 0x294]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x2d0]
push eax
mov byte [ebp - 4], 5
call fcn.0040a170
mov esi, eax
lea eax, [ebp - 0x228]
add esp, 0x28
cmp eax, esi
je 0x40b169
cmp dword [ebp - 0x214], 0x10
jb 0x40b0fe
push dword [ebp - 0x228]
call fcn.0041572d
add esp, 4
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
cmp dword [esi + 0x14], 0x10
jae 0x40b138
mov eax, dword [esi + 0x10]
inc eax
je 0x40b146
push eax
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.00415db0
add esp, 0xc
jmp 0x40b146
mov eax, dword [esi]
mov dword [ebp - 0x228], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x214], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x2bc], 0x10
jb 0x40b180
push dword [ebp - 0x2d0]
call fcn.0041572d
add esp, 4
push 0x45eb50
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.00401c30
mov esi, eax
lea eax, [ebp - 0x228]
add esp, 0xc
cmp eax, esi
je 0x40b22d
cmp dword [ebp - 0x214], 0x10
jb 0x40b1c2
push dword [ebp - 0x228]
call fcn.0041572d
add esp, 4
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
cmp dword [esi + 0x14], 0x10
jae 0x40b1fc
mov eax, dword [esi + 0x10]
inc eax
je 0x40b20a
push eax
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.00415db0
add esp, 0xc
jmp 0x40b20a
mov eax, dword [esi]
mov dword [ebp - 0x228], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x214], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x2bc], 0x10
jb 0x40b244
push dword [ebp - 0x2d0]
call fcn.0041572d
add esp, 4
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.0040a170
mov esi, eax
lea eax, [ebp - 0x228]
add esp, 0xc
cmp eax, esi
je 0x40b2f3
cmp dword [ebp - 0x214], 0x10
jb 0x40b288
push dword [ebp - 0x228]
call fcn.0041572d
add esp, 4
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
cmp dword [esi + 0x14], 0x10
jae 0x40b2c2
mov eax, dword [esi + 0x10]
inc eax
je 0x40b2d0
push eax
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.00415db0
add esp, 0xc
jmp 0x40b2d0
mov eax, dword [esi]
mov dword [ebp - 0x228], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x214], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x2bc], 0x10
jb 0x40b30a
push dword [ebp - 0x2d0]
call fcn.0041572d
add esp, 4
cmp edi, dword [ebp - 0x22c]
je 0x40b3da
push 0x45eb54
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x2d0]
push eax
call fcn.00401c30
mov esi, eax
lea eax, [ebp - 0x228]
add esp, 0xc
cmp eax, esi
je 0x40b3c3
cmp dword [ebp - 0x214], 0x10
jb 0x40b358
push dword [ebp - 0x228]
call fcn.0041572d
add esp, 4
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
cmp dword [esi + 0x14], 0x10
jae 0x40b392
mov eax, dword [esi + 0x10]
inc eax
je 0x40b3a0
push eax
lea eax, [ebp - 0x228]
push esi
push eax
call fcn.00415db0
add esp, 0xc
jmp 0x40b3a0
mov eax, dword [esi]
mov dword [ebp - 0x228], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x218], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x214], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [ebp - 0x2bc], 0x10
jb 0x40b3da
push dword [ebp - 0x2d0]
call fcn.0041572d
add esp, 4
cmp dword [ebp - 0x268], 0x10
jb 0x40b3f1
push dword [ebp - 0x27c]
call fcn.0041572d
add esp, 4
cmp dword [ebp - 0x230], 0x10
mov dword [ebp - 0x268], 0xf
mov dword [ebp - 0x26c], 0
mov byte [ebp - 0x27c], 0
jb 0x40b423
push dword [ebp - 0x244]
call fcn.0041572d
add esp, 4
cmp dword [ebp - 0x280], 0x10
mov dword [ebp - 0x230], 0xf
mov dword [ebp - 0x234], 0
mov byte [ebp - 0x244], 0
jb 0x40b455
push dword [ebp - 0x294]
call fcn.0041572d
add esp, 4
cmp dword [ebp - 0x250], 0x10
mov dword [ebp - 0x280], 0xf
mov dword [ebp - 0x284], 0
mov byte [ebp - 0x294], 0
mov byte [ebp - 4], 1
jb 0x40b48b
push dword [ebp - 0x264]
call fcn.0041572d
add esp, 4
mov esi, dword [ebp - 0x2b0]
inc edi
add esi, 0x18
mov dword [ebp - 0x2b0], esi
cmp edi, dword [ebp - 0x2b4]
jl 0x40afe4
mov eax, dword [ebx + 0x54]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jle 0x40b4d0
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x22c]
push eax
push 2
push dword [ebx + 0x48]
call esi
cmp byte [ebp + 8], 0
push 0
push 0
mov eax, 0x473d38
push 0
je 0x40b4e5
push 1
jmp 0x40b4e7
push 0
cmp dword [0x473d4c], 0x10
cmovae eax, dword [0x473d38]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ecx, eax
mov dword [ebx + 0x48], eax
test ecx, ecx
je 0x40b656
mov eax, dword [ebx + 0x54]
test eax, eax
jle 0x40b52a
imul eax, eax, 0x3e8
push 4
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x22c]
push eax
push 6
push ecx
call esi
cmp dword [ebp - 0x214], 0x10
push 0
push closesocket
push 0
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push 0
push eax
push dword [ebx + 0x48]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x40b656
lea ecx, [ebp - 0x248]
push ecx
lea ecx, [ebp - 0x24c]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push 0x13
push eax
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x24c], 0x200
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
test eax, eax
je 0x40b656
cmp byte [ebp - 0x210], 0
mov dword [ebp - 0x230], 0xf
mov dword [ebp - 0x234], 0
mov byte [ebp - 0x244], 0
jne 0x40b5c0
xor ecx, ecx
jmp 0x40b5d9
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40b5d0
sub ecx, edx
push ecx
lea eax, [ebp - 0x210]
push eax
lea ecx, [ebp - 0x244]
call fcn.004015c0
mov ebx, dword [ebp - 0x230]
mov edi, dword [ebp - 0x244]
mov esi, dword [ebp - 0x234]
cmp ebx, 0x10
lea ecx, [ebp - 0x244]
cmovae ecx, edi
mov eax, 3
cmp esi, eax
cmovb eax, esi
push eax
push 0x45eb58
push ecx
call fcn.00401a00
add esp, 0xc
test eax, eax
jne 0x40b648
cmp esi, 3
jb 0x40b648
cmp esi, 3
setne al
test eax, eax
jne 0x40b648
cmp ebx, 0x10
jb 0x40b644
push edi
call fcn.0041572d
add esp, 4
mov bl, 1
jmp 0x40b658
cmp ebx, 0x10
jb 0x40b656
push edi
call fcn.0041572d
add esp, 4
xor bl, bl
cmp dword [ebp - 0x214], 0x10
jb 0x40b66f
push dword [ebp - 0x228]
call fcn.0041572d
add esp, 4
cmp dword [ebp - 0x298], 0x10
mov dword [ebp - 0x214], 0xf
mov dword [ebp - 0x218], 0
mov byte [ebp - 0x228], 0
jb 0x40b6a1
push dword [ebp - 0x2ac]
call fcn.0041572d
add esp, 4
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.004163f4
mov esp, ebp
pop ebp
ret 4