Function at 0x423f70
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a5f1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x587978]
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 0x423fb8
push eax
call fcn.004eaf4a
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 0x424075
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
test eax, eax
je 0x424075
mov eax, dword [edi]
mov edx, dword [eax]
push 0xffffffffffffffff
mov ecx, edi
call edx
push eax
lea ecx, [esi + 0x80]
call fcn.0040d960
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 0x42404f
mov edx, dword [esi + 0x24]
cmp dword [edx - 0xc], 0
lea ecx, [esi + 0x24]
je 0x424046
push eax
push 0x533c34
push ecx
call fcn.00411990
add esp, 0xc
jmp 0x42404f
lea eax, [ebp + 0x20]
push eax
call fcn.00411920
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 0x424075
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 0x4240be
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp + 0x14], eax
mov dword [ebp - 4], 2
lea ecx, [ebp + 0x14]
call fcn.00406d20
mov dword [ebp - 4], 0xffffffff
lea edi, [ebp + 0x14]
mov dword [ebp - 4], 3
mov ebx, 1
jmp 0x4240e6
add eax, 0xfffffff0
push eax
call fcn.00406e60
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 0x42412d
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp + 0x20], eax
mov dword [ebp - 4], 6
lea ecx, [ebp + 0x20]
call fcn.00406d20
mov byte [ebp - 4], 5
lea eax, [ebp + 0x20]
mov dword [ebp - 4], 7
or ebx, 4
jmp 0x424153
add eax, 0xfffffff0
push eax
call fcn.00406e60
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 0x424197
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 0x4241cf
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 0x4241cf
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 0x424204
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 0x424204
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 0x424239
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 0x424239
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 0x424269
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 0x424269
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 0x4242a2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x42427f
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 0x4242f6
push 4
lea edx, [ebp + 0x28]
push edx
push 0x1f
push eax
mov dword [ebp + 0x28], 0x3300
call edi
test eax, eax
jne 0x4242f6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4242d3
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 0x4243a3
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.0040c510
add esp, 0xc
test al, al
jne 0x424341
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 0x42435f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42436d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
jne 0x4243b6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x424380
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 0x4242c4
push 8
call fcn.004eb841
add esp, 4
mov dword [ebp + 0x28], eax
mov dword [ebp - 4], 0xe
xor edi, edi
cmp eax, edi
je 0x4243de
push eax
lea ecx, [esi + 4]
call fcn.0041f0f0
mov dword [ebp + 0x20], eax
jmp 0x4243e1
mov dword [ebp + 0x20], edi
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x84], edi
jne 0x4243f5
mov dword [ebp + 0x14], edi
jmp 0x4243fe
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 0x424445
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp + 0x28], eax
mov dword [ebp - 4], 0xf
lea ecx, [ebp + 0x28]
call fcn.00406d20
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp + 0x28]
mov dword [ebp - 4], 0x10
or ebx, 0x10
jmp 0x42446b
add eax, 0xfffffff0
push eax
call fcn.00406e60
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 0x4244ad
and ebx, 0xffffffdf
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x10], ebx
call fcn.004064c0
mov dword [ebp - 4], 0xffffffff
test bl, 0x10
je 0x4244c7
and ebx, 0xffffffef
lea ecx, [ebp + 0x28]
mov dword [ebp - 0x10], ebx
call fcn.004064c0
test edi, edi
jne 0x4244e5
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x424270
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x6c], edi
jmp 0x424270
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