Function at 0x410540
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42cda6
mov eax, dword fs:[0]
push eax
sub esp, 0xc0
mov eax, dword [0x43b83c]
xor eax, esp
mov dword [esp + 0xb8], eax
push ebx
push esi
push edi
mov eax, dword [0x43b83c]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
push 0xffffffffffffffff
push 0
lea eax, [ebx + 0x18]
push eax
lea ecx, [esp + 0x8c]
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], 0
mov byte [esp + 0x8c], 0
call fcn.00404090
mov dword [esp + 0xd8], 0
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 [esp + 0x10], edi
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
lea eax, [ebx + 0x30]
push eax
lea edx, [esp + 0x84]
lea ecx, [esp + 0x6c]
mov byte [esp + 0xdc], 1
call fcn.00410de0
mov esi, eax
lea eax, [esp + 0x38]
add esp, 4
cmp eax, esi
je 0x41064d
cmp dword [esp + 0x48], 0x10
jb 0x41062e
push dword [esp + 0x34]
call fcn.004152b7
add esp, 4
push esi
lea ecx, [esp + 0x38]
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], 0
mov byte [esp + 0x38], 0
call fcn.00403f30
cmp dword [esp + 0x7c], 0x10
jb 0x410660
push dword [esp + 0x68]
call fcn.004152b7
add esp, 4
test edi, edi
jle 0x410679
push 1
push 0x436c6c
lea ecx, [esp + 0x3c]
call fcn.00403bb0
jmp 0x410aca
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jle 0x410aca
dec eax
mov dword [esp + 0x4c], eax
xor ebx, ebx
mov edi, edi
mov esi, dword [esp + 0x14]
push 0xffffffffffffffff
mov eax, dword [esi]
add eax, ebx
push 0
push eax
lea ecx, [esp + 0x74]
mov dword [esp + 0x88], 0xf
mov dword [esp + 0x84], 0
mov byte [esp + 0x74], 0
call fcn.00404090
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov byte [esp + 0xf4], 2
push 0
lea eax, [esp + 0x88]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404090
lea ecx, [esp + 0xb0]
call fcn.00410110
add esp, 0x18
mov byte [esp + 0xd8], 3
mov eax, dword [esi + 0xc]
push 0xffffffffffffffff
add eax, ebx
push 0
push eax
lea ecx, [esp + 0x5c]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
call fcn.00404090
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov byte [esp + 0xf4], 4
push 0
lea eax, [esp + 0x70]
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.00404090
lea ecx, [esp + 0xc8]
call fcn.00410110
lea eax, [esp + 0xb0]
push eax
lea edx, [esp + 0x50]
lea ecx, [esp + 0x34]
mov byte [esp + 0xf4], 5
call fcn.00410de0
mov esi, eax
lea eax, [esp + 0x50]
add esp, 0x1c
cmp eax, esi
je 0x410801
cmp dword [esp + 0x48], 0x10
jb 0x4107a4
push dword [esp + 0x34]
call fcn.004152b7
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
cmp dword [esi + 0x14], 0x10
jae 0x4107d6
mov eax, dword [esi + 0x10]
inc eax
je 0x4107e2
push eax
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004152c0
add esp, 0xc
jmp 0x4107e2
mov eax, dword [esi]
mov dword [esp + 0x34], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x48], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x2c], 0x10
jb 0x410814
push dword [esp + 0x18]
call fcn.004152b7
add esp, 4
push 0x436c70
lea edx, [esp + 0x38]
lea ecx, [esp + 0x1c]
call fcn.00404730
mov esi, eax
lea eax, [esp + 0x38]
add esp, 4
cmp eax, esi
je 0x4108a3
cmp dword [esp + 0x48], 0x10
jb 0x410846
push dword [esp + 0x34]
call fcn.004152b7
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
cmp dword [esi + 0x14], 0x10
jae 0x410878
mov eax, dword [esi + 0x10]
inc eax
je 0x410884
push eax
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004152c0
add esp, 0xc
jmp 0x410884
mov eax, dword [esi]
mov dword [esp + 0x34], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x48], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x2c], 0x10
jb 0x4108b6
push dword [esp + 0x18]
call fcn.004152b7
add esp, 4
lea eax, [esp + 0xb0]
push eax
lea edx, [esp + 0x38]
lea ecx, [esp + 0x1c]
call fcn.00410de0
mov esi, eax
lea eax, [esp + 0x38]
add esp, 4
cmp eax, esi
je 0x410948
cmp dword [esp + 0x48], 0x10
jb 0x4108eb
push dword [esp + 0x34]
call fcn.004152b7
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
cmp dword [esi + 0x14], 0x10
jae 0x41091d
mov eax, dword [esi + 0x10]
inc eax
je 0x410929
push eax
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004152c0
add esp, 0xc
jmp 0x410929
mov eax, dword [esi]
mov dword [esp + 0x34], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x48], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x2c], 0x10
jb 0x41095b
push dword [esp + 0x18]
call fcn.004152b7
add esp, 4
cmp edi, dword [esp + 0x4c]
je 0x410a07
push 0x436c74
lea edx, [esp + 0x38]
lea ecx, [esp + 0x1c]
call fcn.00404730
mov esi, eax
lea eax, [esp + 0x38]
add esp, 4
cmp eax, esi
je 0x4109f4
cmp dword [esp + 0x48], 0x10
jb 0x410997
push dword [esp + 0x34]
call fcn.004152b7
add esp, 4
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
cmp dword [esi + 0x14], 0x10
jae 0x4109c9
mov eax, dword [esi + 0x10]
inc eax
je 0x4109d5
push eax
lea eax, [esp + 0x38]
push esi
push eax
call fcn.004152c0
add esp, 0xc
jmp 0x4109d5
mov eax, dword [esi]
mov dword [esp + 0x34], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov dword [esp + 0x44], eax
mov eax, dword [esi + 0x14]
mov dword [esp + 0x48], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
cmp dword [esp + 0x2c], 0x10
jb 0x410a07
push dword [esp + 0x18]
call fcn.004152b7
add esp, 4
cmp dword [esp + 0xc4], 0x10
jb 0x410a20
push dword [esp + 0xb0]
call fcn.004152b7
add esp, 4
cmp dword [esp + 0x64], 0x10
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
jb 0x410a51
push dword [esp + 0x50]
call fcn.004152b7
add esp, 4
cmp dword [esp + 0xac], 0x10
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
jb 0x410a7f
push dword [esp + 0x98]
call fcn.004152b7
add esp, 4
mov byte [esp + 0xd8], 1
cmp dword [esp + 0x7c], 0x10
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], 0
mov byte [esp + 0x98], 0
jb 0x410ab8
push dword [esp + 0x68]
call fcn.004152b7
add esp, 4
inc edi
add ebx, 0x18
cmp edi, dword [esp + 0x10]
jl 0x410690
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x54]
mov esi, dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
jle 0x410aef
imul eax, eax, 0x3e8
push 4
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
push 2
push dword [ebx + 0x48]
call esi
push 0
push 0
push 0
push 0
push 0x436c78
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebx + 0x48], eax
test eax, eax
je 0x410b54
mov ecx, dword [ebx + 0x54]
test ecx, ecx
jle 0x410b26
imul ecx, ecx, 0x3e8
push 4
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x50]
push ecx
push 6
push eax
call esi
cmp dword [esp + 0x48], 0x10
push 0
push 0x80000000
push 0
lea eax, [esp + 0x40]
cmovae eax, dword [esp + 0x40]
push 0
push eax
push dword [ebx + 0x48]
call dword [sym.imp.WININET.dll_InternetOpenUrlA]
mov dword [ebx + 0x4c], eax
test eax, eax
je 0x410b54
mov bl, 1
jmp 0x410b56
xor bl, bl
cmp dword [esp + 0x48], 0x10
jb 0x410b69
push dword [esp + 0x34]
call fcn.004152b7
add esp, 4
cmp dword [esp + 0x94], 0x10
mov dword [esp + 0x48], 0xf
mov dword [esp + 0x44], 0
mov byte [esp + 0x34], 0
jb 0x410b97
push dword [esp + 0x80]
call fcn.004152b7
add esp, 4
mov al, bl
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb8]
xor ecx, esp
call fcn.00415144
mov esp, ebp
pop ebp
ret