Function at 0x468630
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddeff
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.00468550
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 0x4686d8
mov eax, edx
lock xadd dword [ebx + 4], eax
jne 0x4686d8
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 0x4686d8
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 0x468732
mov eax, edx
lock xadd dword [ebx + 4], eax
jne 0x468732
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 0x468732
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.00466c10
mov esi, eax
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 4
push eax
mov ecx, ebx
call fcn.00467e90
push ecx
mov edx, eax
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x64]
call fcn.0042fff0
push esi
mov edx, eax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x28]
call fcn.00468d50
add esp, 8
mov eax, dword [ebp - 0x50]
cmp eax, 0x10
jb 0x46878e
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.004176a0
mov dword [ebp - 0x50], 0xf
mov dword [ebp - 0x54], 0
mov byte [ebp - 0x64], 0
mov eax, dword [ebp - 0x68]
cmp eax, 8
jb 0x4687b5
inc eax
lea ecx, [ebp - 0x7c]
push eax
push dword [ebp - 0x7c]
call fcn.00415a10
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 0x4687e8
inc eax
lea ecx, [ebp - 0x94]
push eax
push dword [ebp - 0x94]
call fcn.004176a0
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.0042c550
mov esi, eax
add esp, 4
cmp dword [ebx + 0x14], 0x10
lea eax, [ebx + 0x10]
mov dword [ebp - 0x30], eax
jb 0x468823
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.00420920
mov ecx, eax
add esp, 4
test ecx, ecx
jne 0x46885f
mov ecx, dword [ebp - 0x30]
mov eax, dword [ecx]
cmp eax, 5
jae 0x468854
or ecx, 0xffffffff
jmp 0x46885f
mov ecx, 5
cmp ecx, eax
sbb ecx, ecx
neg ecx
cmp dword [esi + 0x14], 8
jb 0x468867
mov esi, dword [esi]
mov edx, dword [ebp - 0x34]
cmp dword [edx + 0x14], 8
jb 0x468872
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 0x4688ab
inc eax
lea ecx, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
call fcn.00415a10
mov eax, dword [edi + 0x10]
test eax, eax
jne 0x4688d8
push str.Unable_to_initialize_WinHTTP_request_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.0047e450
add esp, 0xc
lea eax, [ebp - 0x48]
push 0x51d3f8
push eax
call fcn.004acc20
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 0x4688f5
push str.Unable_to_set_WinHTTP_context_
jmp 0x4688b7
push 0
push 0xffffffffffffffff
push 0x467e70
push dword [edi + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSetStatusCallback]
cmp eax, 0xffffffff
jne 0x468913
push str.Unable_to_set_WinHTTP_status_callback_
jmp 0x4688b7
lea ecx, [ebp - 0x28]
call fcn.0041a410
lea ecx, [ebp + 8]
call fcn.00416e90
lea ecx, [ebp + 0x10]
call fcn.00416e90
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.00493bec
mov esp, ebp
pop ebp
ret 0x18