Function at 0x467b40
Capabilities:
Receive http response
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ddaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x520078]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebx + 0x40]
sub ecx, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x40]
sub eax, dword [ebx + 0x3c]
push 0
push ecx
push eax
push dword [ebx + 0x3c]
mov dword [ebp - 0x34], ebx
push 0
push 0
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x467bbe
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x58]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x58]
push eax
call fcn.004ac830
mov eax, dword [ebx + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
push 0xffffffffffffffff
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push 0
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x467bfc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x6c]
push eax
call fcn.004ac830
test eax, eax
jne 0x467c1b
push 0x2ef1
lea ecx, [ebp - 0x80]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x80]
push eax
call fcn.004ac830
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x467c3f
push eax
lea ecx, [ebp - 0x94]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x94]
push eax
call fcn.004ac830
push 0
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x467c71
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0xa8]
push eax
call fcn.004ac830
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x467ca9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0xbc]
push eax
call fcn.004ac830
test eax, eax
jne 0x467cce
push 0x2ef1
lea ecx, [ebp - 0xd0]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0xd0]
push eax
call fcn.004ac830
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x467cf2
push eax
lea ecx, [ebp - 0xe4]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0xe4]
push eax
call fcn.004ac830
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebx + 0x48], 0
jne 0x467d11
cmp dword [ebx + 0x68], 0
jne 0x467d11
cmp dword [ebx + 0x4c], 0
je 0x467f2f
push dword [ebx + 0x54]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.00468990
or esi, 0xffffffff
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 2
cmp dword [ebx + 0x68], 0
je 0x467da0
cmp dword [ebx + 0x6c], 8
jb 0x467d46
mov eax, dword [ebx + 0x58]
jmp 0x467d49
lea eax, [ebx + 0x58]
push 0
push 0x80
push 4
push 0
push 5
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x24], esi
cmp esi, 0xffffffff
jne 0x467da0
lea ecx, [ebx + 0x58]
call fcn.004155c0
push eax
push 0x502958
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0047e0e0
add esp, 0x10
lea eax, [ebp - 0xf8]
push 0x51d458
push eax
call fcn.004ac830
nop
push 0
push dword [ebx + 0x54]
push dword [ebp - 0x30]
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x467dd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10c]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x10c]
push eax
call fcn.004ac830
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x467e10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x120]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x120]
push eax
call fcn.004ac830
test eax, eax
jne 0x467e35
push 0x2ef1
lea ecx, [ebp - 0x134]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x134]
push eax
call fcn.004ac830
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x467e59
push eax
lea ecx, [ebp - 0x148]
call fcn.0047e020
push 0x51d458
lea eax, [ebp - 0x148]
push eax
call fcn.004ac830
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x467eab
mov eax, dword [ebx + 0x2c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 0
mov eax, dword [ecx]
lea ecx, [ebp - 0x40]
push ecx
push dword [ebp - 0x30]
mov edi, dword [eax]
mov ecx, edi
call dword [0x4e3310]
mov ecx, dword [ebp - 0x20]
call edi
mov eax, dword [ebx + 0x2c]
add dword [ebx + 0x70], eax
test eax, eax
jne 0x467da0
lea ecx, [ebp - 0x24]
call fcn.00414aa0
lea ecx, [ebp - 0x30]
call fcn.00416f60
jmp 0x467f2f
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x467ecb
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebp - 0x30]
add edx, eax
mov byte [ebp - 0x38], 0
push dword [ebp - 0x38]
push edx
push eax
push dword [ecx + 4]
call fcn.00468ab0
cmp esi, 0xffffffff
je 0x467e88
push 0
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 0
push eax
push dword [ebx + 0x2c]
push dword [ebp - 0x30]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x467e88
push str.Unable_to_write_to_the_file_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.0047e0e0
add esp, 0xc
lea eax, [ebp - 0x15c]
push 0x51d458
push eax
call fcn.004ac830
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x30], ecx
mov eax, 0x467f2c
ret
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x467f45
push dword [ebx + 0x1c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049384c
mov esp, ebp
pop ebp
ret