Function at 0x46a990
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d771f
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x517074]
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, ecx
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 1
call fcn.0046a8b0
mov eax, dword [ebp + 0xc]
mov ebx, dword [edi + 4]
mov ecx, dword [ebp + 8]
mov dword [edi + 4], eax
mov dword [ebp + 8], 0
mov dword [ebp + 0xc], 0
mov dword [edi], ecx
or edx, 0xffffffff
mov byte [ebp - 4], 2
test ebx, ebx
je 0x46aa38
mov eax, edx
lock xadd dword [ebx + 4], eax
jne 0x46aa38
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4db310]
mov ecx, ebx
call esi
or edx, 0xffffffff
mov eax, edx
lock xadd dword [ebx + 8], eax
jne 0x46aa38
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4db310]
mov ecx, ebx
call esi
or edx, 0xffffffff
mov eax, dword [ebp + 0x14]
mov ebx, dword [edi + 0xc]
mov ecx, dword [ebp + 0x10]
mov dword [edi + 0xc], eax
mov dword [ebp + 0x10], 0
mov dword [ebp + 0x14], 0
mov dword [edi + 8], ecx
mov byte [ebp - 4], 3
test ebx, ebx
je 0x46aa92
mov eax, edx
lock xadd dword [ebx + 4], eax
jne 0x46aa92
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4db310]
mov ecx, ebx
call esi
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x46aa92
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4db310]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x30]
lea eax, [ebp - 0x94]
push eax
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.00469100
mov esi, eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.0046a1f0
push ecx
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.0042df80
push esi
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.0046af70
add esp, 8
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x46aaee
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.004187a0
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x46ab15
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00414120
xor eax, eax
mov dword [ebp - 0x68], 7
mov dword [ebp - 0x6c], 0
mov word [ebp - 0x7c], ax
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x80]
cmp eax, 0x10
jb 0x46ab48
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.004187a0
push 0xfde9
lea edx, [ebp - 0x28]
mov dword [ebp - 0x80], 0xf
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x84], 0
mov byte [ebp - 0x94], 0
call fcn.0042e270
mov esi, eax
add esp, 4
cmp dword [ebx + 0x14], 0x10
lea eax, [ebx + 0x10]
mov dword [ebp - 0x30], eax
jb 0x46ab83
mov ebx, dword [ebx]
mov ecx, dword [eax]
mov edx, 0x4faf60
mov eax, 5
cmp ecx, eax
cmovb eax, ecx
mov ecx, ebx
push eax
call fcn.0041cda0
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x46abbf
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
cmp eax, 5
jae 0x46abb4
or ecx, 0xffffffff
jmp 0x46abbf
mov ecx, 5
cmp ecx, eax
sbb ecx, ecx
neg ecx
cmp dword [esi + 0x14], 8
jb 0x46abc7
mov esi, dword [esi]
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x14], 8
jb 0x46abd2
mov edx, dword [edx]
test ecx, ecx
mov eax, 0x40
mov ebx, 0x800040
cmove eax, ebx
push eax
push 0
push 0
push 0
push esi
push edx
push dword [edi + 8]
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 0x38]
cmp eax, 8
jb 0x46ac0b
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00414120
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x46ac38
push str.Unable_to_initialize_WinHTTP_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00477100
add esp, 0xc
lea eax, [ebp - 0x44]
push 0x513ed8
push eax
call fcn.004a4f7b
push 4
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], edi
push ecx
push 0x2d
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
test eax, eax
jne 0x46ac55
push str.Unable_to_set_WinHTTP_context_
jmp 0x46ac17
push 0
push 0xffffffffffffffff
push 0x46a1d0
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x46ac73
push str.Unable_to_set_WinHTTP_status_callback_
jmp 0x46ac17
lea ecx, [ebp - 0x28]
call fcn.00418760
lea ecx, [ebp + 8]
call fcn.004151d0
lea ecx, [ebp + 0x10]
call fcn.004151d0
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.0048bc9e
mov esp, ebp
pop ebp
ret 0x18