Function at 0x406642
Capabilities:
Create http request

Disassembly:
push 0x514
mov eax, 0x489fe8
call fcn.0044c99a
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x3f0], eax
inc ebx
xor eax, eax
push 0x64
push eax
mov dword [ebp - 0x3e8], eax
mov dword [ebp - 0x3ec], eax
lea eax, [ebp - 0x74]
push eax
call fcn.00465e50
mov edi, 0x200
lea eax, [ebp - 0x390]
push edi
push 0
push eax
call fcn.00465e50
push 0x64
lea eax, [ebp - 0x390]
push eax
push 0x64
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x3ec]
push eax
lea eax, [ebp - 0x3e8]
push eax
call fcn.00406155
mov esi, eax
lea eax, [ebp - 0x390]
push esi
push eax
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x3ec]
push dword [ebp - 0x3e8]
push str.User_FF_proxy:_type:__d__port:_d__server:_S__byPass:_S__Return:_d
call fcn.004069e3
mov eax, dword [ebp - 0x3e8]
add esp, 0x48
xor ecx, ecx
test esi, esi
cmove eax, ecx
lea ecx, [ebp - 0x3b4]
push 0x24
mov dword [ebp - 0x3e8], eax
pop edx
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x4066f0
push 0x14
pop edx
lea ecx, [ebp - 0x404]
mov byte [ecx], 0
inc ecx
sub edx, 1
jne 0x406702
xor ecx, ecx
sub eax, ecx
je 0x40687b
sub eax, 1
je 0x406787
sub eax, 1
je 0x406731
dec eax
sub eax, 1
jne 0x406950
push 8
pop eax
jmp 0x406881
push 4
pop esi
push ecx
lea eax, [ebp - 0x74]
mov dword [ebp - 0x3b4], esi
push eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.00418906
add esp, 0xc
mov dword [ebp - 0x3a4], esi
cmp dword [ebp - 0x3b8], 8
lea eax, [ebp - 0x3cc]
mov dword [ebp - 0x3a8], ebx
lea ecx, [ebp - 0x3cc]
cmovae eax, dword [ebp - 0x3cc]
push 2
mov dword [ebp - 0x3b0], eax
pop esi
call fcn.00406a00
jmp 0x4068d6
push 0x100
push ecx
lea eax, [ebp - 0x174]
push eax
call fcn.00465e50
push dword [ebp - 0x3ec]
lea eax, [ebp - 0x74]
push eax
push str.http:___s:_d
lea eax, [ebp - 0x174]
push 0xff
push eax
call fcn.00406c17
push 0
lea eax, [ebp - 0x174]
mov dword [ebp - 0x3b4], 2
push eax
lea eax, [ebp - 0x3e4]
push eax
call fcn.00418906
and dword [ebp - 4], 0
lea eax, [ebp - 0x3e4]
cmp dword [ebp - 0x3d0], 8
push edi
cmovae eax, dword [ebp - 0x3e4]
mov dword [ebp - 0x3b0], eax
lea eax, [ebp - 0x390]
push eax
mov dword [ebp - 0x3a8], 3
call fcn.0046942b
add esp, 0x34
test eax, eax
je 0x406853
push 0
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x3cc]
push eax
call fcn.00418906
add esp, 0xc
lea eax, [ebp - 0x3cc]
cmp dword [ebp - 0x3b8], 8
lea ecx, [ebp - 0x3cc]
cmovae eax, dword [ebp - 0x3cc]
mov dword [ebp - 0x3a4], eax
call fcn.00406a00
jmp 0x40685d
mov dword [ebp - 0x3a4], str.local
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3e4]
push 3
pop esi
mov dword [ebp - 0x39c], ebx
mov dword [ebp - 0x398], esi
jmp 0x40677d
mov eax, dword [ebp - 0x3b0]
or eax, ebx
mov dword [ebp - 0x3b4], ebx
mov dword [ebp - 0x3b0], eax
lea eax, [ebp - 0x520]
push eax
call fcn.00412ffe
pop ecx
push 0x47
pop ecx
mov esi, eax
lea edi, [ebp - 0x190]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x18c], 5
jne 0x4068d4
cmp dword [ebp - 0x188], 0
jne 0x4068d4
push 2
mov dword [ebp - 0x3a8], 4
mov dword [ebp - 0x3a4], 0x4948f0
pop esi
jmp 0x4068d6
mov esi, ebx
lea eax, [ebp - 0x3b4]
mov dword [ebp - 0x3fc], esi
push 0x14
xor ecx, ecx
mov dword [ebp - 0x3f4], eax
mov eax, dword [ebp - 0x3f0]
mov dword [ebp - 0x400], ecx
mov dword [ebp - 0x3f8], ecx
pop edi
mov dword [ebp - 0x404], edi
test eax, eax
je 0x406958
mov esi, eax
push edi
lea eax, [ebp - 0x404]
push eax
push 0x4b
push esi
call dword [sym.imp.WININET.dll_InternetSetOptionW]
test eax, eax
jne 0x406935
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetSetOption_error:__d
call fcn.004060b8
pop ecx
pop ecx
xor ebx, ebx
push str.Set_proxy_by_FF
call fcn.004069e3
cmp dword [ebp - 0x3f0], 0
pop ecx
jne 0x406950
push esi
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, ebx
call fcn.0044c944
ret
push ecx
push ecx
push ecx
push ebx
push 0x494870
call dword [sym.imp.WININET.dll_InternetOpenW]
mov esi, eax
test esi, esi
jne 0x40690b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.InternetOpen_error:_d
call fcn.004060b8
pop ecx
pop ecx
xor eax, eax
jmp 0x406952