Function at 0x424070
Capabilities:
Prepare http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51a7e1
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 0x4240b8
push eax
call fcn.004eb17a
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 0x424175
mov eax, dword [edi]
mov edx, dword [eax]
mov ecx, edi
call edx
test eax, eax
je 0x424175
mov eax, dword [edi]
mov edx, dword [eax]
push 0xffffffffffffffff
mov ecx, edi
call edx
push eax
lea ecx, [esi + 0x80]
call fcn.0040dc20
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 0x42414f
mov edx, dword [esi + 0x24]
cmp dword [edx - 0xc], 0
lea ecx, [esi + 0x24]
je 0x424146
push eax
push 0x533c34
push ecx
call fcn.00411c70
add esp, 0xc
jmp 0x42414f
lea eax, [ebp + 0x20]
push eax
call fcn.00411c00
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 0x424175
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 0x4241be
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.00406c60
mov dword [ebp - 4], 0xffffffff
lea edi, [ebp + 0x14]
mov dword [ebp - 4], 3
mov ebx, 1
jmp 0x4241e6
add eax, 0xfffffff0
push eax
call fcn.00406d80
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 0x42422d
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.00406c60
mov byte [ebp - 4], 5
lea eax, [ebp + 0x20]
mov dword [ebp - 4], 7
or ebx, 4
jmp 0x424253
add eax, 0xfffffff0
push eax
call fcn.00406d80
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 0x424297
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 0x4242cf
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 0x4242cf
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 0x424304
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 0x424304
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 0x424339
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 0x424339
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 0x424369
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 0x424369
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 0x4243a2
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x42437f
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 0x4243f6
push 4
lea edx, [ebp + 0x28]
push edx
push 0x1f
push eax
mov dword [ebp + 0x28], 0x3300
call edi
test eax, eax
jne 0x4243f6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x4243d3
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 0x4244a3
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.0040c6e0
add esp, 0xc
test al, al
jne 0x424441
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 0x42445f
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x42446d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
test edi, edi
jne 0x4244b6
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x424480
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 0x4243c4
push 8
call fcn.004eba15
add esp, 4
mov dword [ebp + 0x28], eax
mov dword [ebp - 4], 0xe
xor edi, edi
cmp eax, edi
je 0x4244de
push eax
lea ecx, [esi + 4]
call fcn.0041f3d0
mov dword [ebp + 0x20], eax
jmp 0x4244e1
mov dword [ebp + 0x20], edi
mov dword [ebp - 4], 0xffffffff
cmp dword [esi + 0x84], edi
jne 0x4244f5
mov dword [ebp + 0x14], edi
jmp 0x4244fe
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 0x424545
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.00406c60
mov dword [ebp - 4], 0xffffffff
lea edx, [ebp + 0x28]
mov dword [ebp - 4], 0x10
or ebx, 0x10
jmp 0x42456b
add eax, 0xfffffff0
push eax
call fcn.00406d80
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 0x4245ad
and ebx, 0xffffffdf
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x10], ebx
call fcn.00406ef0
mov dword [ebp - 4], 0xffffffff
test bl, 0x10
je 0x4245c7
and ebx, 0xffffffef
lea ecx, [ebp + 0x28]
mov dword [ebp - 0x10], ebx
call fcn.00406ef0
test edi, edi
jne 0x4245e5
mov eax, dword [esi + 0x6c]
test eax, eax
je 0x424370
push eax
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
mov dword [esi + 0x6c], edi
jmp 0x424370
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