Function at 0x4166e0
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47c89b
mov eax, dword fs:[0]
push eax
sub esp, 0x4e0
mov eax, dword [0x4ade78]
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 edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
push 0
mov ecx, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x4cc], edi
mov dword [ebp - 0x4ec], edi
mov dword [ebp - 0x4c4], eax
mov dword [ebp - 0x4e4], 0
call fcn.0042daf0
mov ebx, dword [0x4af2c0]
mov ecx, 5
lea eax, [ebx + 1]
imul eax, ebx
cdq
idiv ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x4e4], 1
cmp edx, 4
jne 0x4167c4
xor edx, edx
mov dword [ebp - 0x4d0], edx
lea edi, [ebp - 0x454]
xor ecx, ecx
lea ebx, [ebx]
mov eax, ebx
inc ecx
cdq
xor esi, esi
idiv ecx
mov dword [ebp - 0x4c8], ecx
mov dword [ebp - 0x4e8], edx
lea ecx, [esi + 1]
mov esi, ecx
cmp esi, 0xe
jl 0x416794
mov ecx, dword [ebp - 0x4c8]
add edi, 0xe
cmp ecx, 6
jl 0x416780
mov edx, dword [ebp - 0x4d0]
inc edx
mov dword [ebp - 0x4d0], edx
cmp edx, 0xd
jl 0x416778
mov edi, dword [ebp - 0x4cc]
mov esi, 1
call fcn.00412b90
xor ecx, ecx
push ecx
push ecx
test al, al
push ecx
cmovne esi, ecx
push esi
push 0x490f70
call dword [sym.imp.WININET.dll_InternetOpenA]
mov ebx, eax
mov dword [ebp - 0x4c8], ebx
call fcn.00416d90
test al, al
jne 0x41680b
mov ecx, dword [0x4af2c0]
mov eax, 1
test ecx, ecx
cmove ecx, eax
mov dword [0x4af2c0], ecx
test ebx, ebx
je 0x416bc3
push 0
lea ecx, [ebp - 0x4e0]
call fcn.0042daf0
mov dword [ebp - 4], 1
call fcn.0040ce10
test al, al
jne 0x416846
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x50
div ecx
inc edx
mov dword [0x4af2c0], edx
push 0x491620
lea ecx, [ebp - 0x4c0]
call fcn.0042dab0
lea eax, [ebp - 0x4c0]
push eax
push str.method
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 2
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.0042dd80
call fcn.004553b0
test al, al
jne 0x4168b0
mov ebx, dword [0x4af2c0]
xor esi, esi
mov edi, ebx
lea ebx, [ebx]
inc esi
dec edi
cmp esi, 0xc8
jb 0x4168a0
mov ebx, dword [ebp - 0x4c8]
push dword [ebp - 0x4c4]
lea eax, [ebp - 0x4ac]
push eax
call fcn.00452ec0
add esp, 8
push eax
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 3
call fcn.0042da10
lea eax, [ebp - 0x4c0]
push eax
push 0x49160c
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 4
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 3
call fcn.0042dd80
cmp dword [ebp - 0x498], 0x10
mov byte [ebp - 4], 1
jb 0x416921
push dword [ebp - 0x4ac]
call fcn.00460a34
add esp, 4
push 0x491bac
lea ecx, [ebp - 0x4c0]
call fcn.0042dab0
lea eax, [ebp - 0x4c0]
push eax
push str.acceptedStatusCodes
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 5
call fcn.0042e010
mov ecx, eax
call fcn.0042e5f0
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.0042dd80
call fcn.0040ce10
test al, al
jne 0x4169d5
xor esi, esi
lea ecx, [ecx]
call fcn.00461e71
movd xmm0, eax
cvtdq2pd xmm0, xmm0
inc esi
movsd qword [ebp + esi*8 - 0x49c], xmm0
cmp esi, 8
jb 0x416970
xor ecx, ecx
mov edi, edi
mov eax, 7
cmp ecx, eax
jge 0x4169cf
lea esp, [esp]
movsd xmm0, qword [ebp + eax*8 - 0x494]
movsd xmm1, qword [ebp + eax*8 - 0x49c]
comisd xmm0, xmm1
jbe 0x4169ca
movsd qword [ebp + eax*8 - 0x494], xmm1
movsd qword [ebp + eax*8 - 0x49c], xmm0
dec eax
cmp eax, ecx
jg 0x4169a0
inc ecx
cmp ecx, 8
jl 0x416990
push 0x491bb0
lea ecx, [ebp - 0x4c0]
call fcn.0042dab0
lea eax, [ebp - 0x4c0]
push eax
push str.acceptedStatusCodes
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 6
call fcn.0042e010
mov ecx, eax
call fcn.0042e5f0
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.0042dd80
push 0x491bb4
lea ecx, [ebp - 0x4c0]
call fcn.0042dab0
lea eax, [ebp - 0x4c0]
push eax
push str.acceptedStatusCodes
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 7
call fcn.0042e010
mov ecx, eax
call fcn.0042e5f0
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.0042dd80
push 0x491bb8
lea ecx, [ebp - 0x4c0]
call fcn.0042dab0
lea eax, [ebp - 0x4c0]
push eax
push str.acceptedStatusCodes
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 8
call fcn.0042e010
mov ecx, eax
call fcn.0042e5f0
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.0042dd80
push 0x49168c
lea ecx, [ebp - 0x4c0]
call fcn.0042dab0
lea eax, [ebp - 0x4c0]
push eax
push str.acceptTypes
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 9
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.0042dd80
push 1
lea ecx, [ebp - 0x4c0]
call fcn.0042dbf0
lea eax, [ebp - 0x4c0]
push eax
push str.redirectCheck
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 0xa
call fcn.0042e010
mov ecx, eax
call fcn.0042de20
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.0042dd80
push 0
lea eax, [ebp - 0x4e0]
push 0
push eax
mov dword [ebp - 0x4c4], 0
lea eax, [ebp - 0x4c4]
push eax
lea eax, [ebp - 0x4c0]
push ebx
push eax
call fcn.004139d0
add esp, 0x18
mov esi, dword [ebp - 0x4cc]
push eax
mov ecx, esi
mov byte [ebp - 4], 0xb
call fcn.0042de20
lea ecx, [ebp - 0x4c0]
mov byte [ebp - 4], 1
call fcn.0042dd80
push ebx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
push str.urlRedirected
mov ecx, esi
call fcn.0042f180
test al, al
jne 0x416bb0
push str.urlRedirected
mov ecx, esi
call fcn.0042e010
mov ecx, eax
call fcn.0042f130
test al, al
jne 0x416bb0
push str.urlRedirected
mov ecx, esi
call fcn.0042e010
mov ecx, eax
call fcn.0042e620
test al, al
jne 0x416bb0
mov ecx, esi
call fcn.0042ea60
lea ecx, [ebp - 0x4e0]
mov byte [ebp - 4], 0
call fcn.0042dd80
mov eax, esi
jmp 0x416bc5
mov eax, edi
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.00461234
mov esp, ebp
pop ebp
ret