Function at 0x4682c0
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddbaf
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x520078]
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.004681e0
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 0x468368
mov eax, edx
lock xadd dword [ebx + 4], eax
jne 0x468368
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4e3310]
mov ecx, ebx
call esi
or edx, 0xffffffff
mov eax, edx
lock xadd dword [ebx + 8], eax
jne 0x468368
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e3310]
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 0x4683c2
mov eax, edx
lock xadd dword [ebx + 4], eax
jne 0x4683c2
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x4e3310]
mov ecx, ebx
call esi
or eax, 0xffffffff
lock xadd dword [ebx + 8], eax
dec eax
jne 0x4683c2
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x4e3310]
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.004668a0
mov esi, eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00467b20
push ecx
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.0042fbc0
push esi
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.004689e0
add esp, 8
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x46841e
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.00417280
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x468445
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.004155f0
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 0x468478
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.00417280
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.0042c120
mov esi, eax
add esp, 4
cmp dword [ebx + 0x14], 0x10
lea eax, [ebx + 0x10]
mov dword [ebp - 0x30], eax
jb 0x4684b3
mov ebx, dword [ebx]
mov ecx, dword [eax]
mov edx, str.https
mov eax, 5
cmp ecx, eax
cmovb eax, ecx
mov ecx, ebx
push eax
call fcn.004204f0
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x4684ef
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
cmp eax, 5
jae 0x4684e4
or ecx, 0xffffffff
jmp 0x4684ef
mov ecx, 5
cmp ecx, eax
sbb ecx, ecx
neg ecx
cmp dword [esi + 0x14], 8
jb 0x4684f7
mov esi, dword [esi]
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x14], 8
jb 0x468502
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 0x46853b
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.004155f0
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x468568
push str.Unable_to_initialize_WinHTTP_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0047e0e0
add esp, 0xc
lea eax, [ebp - 0x48]
push 0x51d458
push eax
call fcn.004ac830
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 0x468585
push str.Unable_to_set_WinHTTP_context_
jmp 0x468547
push 0
push 0xffffffffffffffff
push 0x467b00
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x4685a3
push str.Unable_to_set_WinHTTP_status_callback_
jmp 0x468547
lea ecx, [ebp - 0x28]
call fcn.00419ff0
lea ecx, [ebp + 8]
call fcn.00416a70
lea ecx, [ebp + 0x10]
call fcn.00416a70
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.0049384c
mov esp, ebp
pop ebp
ret 0x18