Function at 0x416470
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ceaf1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x52de08]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
mov dword [ebp - 0x10], edi
mov eax, dword [esi + 0x80]
cmp eax, edi
je 0x4164b8
push eax
call fcn.004aaaaa
add esp, 4
mov dword [esi + 0x80], edi
mov dword [esi + 0x84], edi
mov dword [esi + 0x88], edi
mov edi, dword [ebp + 0x20]
test edi, edi
je 0x416575
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
test eax, eax
je 0x416575
mov eax, dword [edi]
mov edx, dword [eax]
push 0xffffffffffffffff
mov ecx, edi
call edx
push eax
lea ecx, [esi + 0x80]
call fcn.0040e200
mov eax, dword [esi + 0x84]
mov ebx, dword [esi + 0x80]
mov edx, dword [edi]
push eax
mov eax, dword [edx + 4]
push ebx
mov ecx, edi
call eax
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [ebp + 0x20]
push eax
mov ecx, edi
call edx
mov dword [ebp - 4], 0
mov eax, dword [ebp + 0x20]
cmp dword [eax - 0xc], 0
je 0x41654f
mov edx, dword [esi + 0x24]
cmp dword [edx - 0xc], 0
lea ecx, [esi + 0x24]
je 0x416546
push eax
push 0x4e8074
push ecx
call fcn.00412c60
add esp, 0xc
jmp 0x41654f
lea eax, [ebp + 0x20]
push eax
call fcn.00412bf0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416575
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x4165be
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp + 0x14]
call fcn.00406dc0
mov dword [ebp - 4], 0xffffffff
lea edi, [ebp + 0x14]
mov dword [ebp - 4], 3
mov ebx, 1
jmp 0x4165e6
add eax, 0xfffffff0
push eax
call fcn.00406ee0
add esp, 4
add eax, 0x10
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 3
lea edi, [ebp + 0x14]
mov dword [ebp - 4], 5
mov ebx, 2
mov dword [ebp - 0x10], ebx
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x41662d
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp + 0x20], eax
mov dword [ebp - 4], 6
lea ecx, [ebp + 0x20]
call fcn.00406dc0
mov byte [ebp - 4], 5
lea eax, [ebp + 0x20]
mov dword [ebp - 4], 7
or ebx, 4
jmp 0x416653
add eax, 0xfffffff0
push eax
call fcn.00406ee0
add eax, 0x10
add esp, 4
mov dword [ebp + 0x20], eax
mov dword [ebp - 4], 7
lea eax, [ebp + 0x20]
mov dword [ebp - 4], 9
or ebx, 8
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov ecx, dword [edi]
mov edi, dword [ebp + 8]
mov edi, dword [edi]
mov eax, dword [eax]
mov edx, dword [edx]
mov dword [ebp + 0x10], edi
mov edi, dword [ebp + 0x1c]
push edi
mov edi, dword [ebp + 0x18]
push edi
push ecx
push eax
mov eax, dword [ebp + 0x10]
push edx
push eax
mov eax, dword [esi + 0x74]
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov edi, eax
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x416697
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x6c], 0
mov eax, 7
mov dword [esi + 0x6c], edi
mov dword [ebp - 4], eax
test bl, 8
je 0x4166cf
and ebx, 0xfffffff7
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4166cf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 5
mov dword [ebp - 4], eax
test bl, 4
je 0x416704
and ebx, 0xfffffffb
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416704
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 3
mov dword [ebp - 4], eax
test bl, 2
je 0x416739
and ebx, 0xfffffffd
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x416739
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
or ecx, 0xffffffff
mov dword [ebp - 4], ecx
test bl, 1
je 0x416769
and ebx, 0xfffffffe
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x416769
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi + 0x6c]
test eax, eax
jne 0x4167a2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x41677f
mov dword [esi + 0x60], eax
mov ecx, dword [esi + 0x94]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
cmp byte [ebp + 0x28], 0
mov edi, dword [sym.imp.WINHTTP.dll_WinHttpSetOption]
je 0x4167f6
push 4
lea edx, [ebp + 0x28]
push edx
push 0x1f
push eax
mov dword [ebp + 0x28], 0x3300
call edi
test eax, eax
jne 0x4167f6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4167d3
mov dword [esi + 0x60], eax
mov eax, dword [esi + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov ecx, dword [esi + 0x9c]
test ecx, ecx
jne 0x4168a3
xor eax, eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [esi + 0x1c]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x7c]
push edx
push eax
call fcn.0040cba0
add esp, 0xc
test al, al
jne 0x416841
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [esi + 0x6c]
push 0xc
lea ecx, [ebp - 0x1c]
push ecx
push 0x26
push eax
call edi
mov edi, eax
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x41685f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x41686d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
jne 0x4168b6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x416880
mov dword [esi + 0x60], eax
mov edx, dword [esi + 0x94]
push edx
call dword [sym.imp.KERNEL32.dll_SetEvent]
call edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
mov eax, dword [esi + 0x6c]
push 0xc
push ecx
push 0x26
push eax
call edi
test eax, eax
je 0x4167c4
push 8
call fcn.004ab3a1
add esp, 4
mov dword [ebp + 0x28], eax
mov dword [ebp - 4], 0xe
xor edi, edi
cmp eax, edi
je 0x4168de
push eax
lea ecx, [esi + 4]
call fcn.00413940
mov dword [ebp + 0x20], eax
jmp 0x4168e1
mov dword [ebp + 0x20], edi
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x84], edi
jne 0x4168f5
mov dword [ebp + 0x14], edi
jmp 0x4168fe
mov ecx, dword [esi + 0x80]
mov dword [ebp + 0x14], ecx
mov edi, dword [ebp + 0x24]
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
test ecx, ecx
jne 0x416945
mov edx, dword [0x52ddd4]
mov eax, dword [edx + 0xc]
mov ecx, 0x52ddd4
call eax
add eax, 0x10
mov dword [ebp + 0x28], eax
mov dword [ebp - 4], 0xf
lea ecx, [ebp + 0x28]
call fcn.00406dc0
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp + 0x28]
mov dword [ebp - 4], 0x10
or ebx, 0x10
jmp 0x41696b
add eax, 0xfffffff0
push eax
call fcn.00406ee0
add eax, 0x10
add esp, 4
mov dword [ebp + 0x10], eax
mov dword [ebp - 4], 0x10
lea edx, [ebp + 0x10]
mov dword [ebp - 4], 0x12
or ebx, 0x20
mov dword [ebp - 0x10], ebx
mov ecx, dword [edi]
mov eax, dword [esi + 0x84]
mov edi, dword [ebp + 0x20]
mov ecx, dword [ecx - 0xc]
mov edx, dword [edx]
push edi
push eax
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [esi + 0x6c]
push ecx
push edx
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
mov edi, eax
mov dword [ebp - 4], 0x10
test bl, 0x20
je 0x4169ad
and ebx, 0xffffffdf
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00406650
mov dword [ebp - 4], 0xffffffff
test bl, 0x10
je 0x4169c7
and ebx, 0xffffffef
lea ecx, [ebp + 0x28]
mov dword [ebp - 0x10], ebx
call fcn.00406650
test edi, edi
jne 0x4169e5
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x416770
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x6c], edi
jmp 0x416770
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24