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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x454380
mov eax, dword fs:[0]
push eax
sub esp, 0x154
mov eax, dword [0x471078]
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 0x4140ce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x58]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0x58]
push eax
call fcn.00438104
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 0x41410c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x6c]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0x6c]
push eax
call fcn.00438104
test eax, eax
jne 0x41412b
push 0x2ef1
lea ecx, [ebp - 0x80]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0x80]
push eax
call fcn.00438104
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x41414f
push eax
lea ecx, [ebp - 0x94]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0x94]
push eax
call fcn.00438104
push 0
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x414181
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xa8]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0xa8]
push eax
call fcn.00438104
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x4141b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xbc]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0xbc]
push eax
call fcn.00438104
test eax, eax
jne 0x4141de
push 0x2ef1
lea ecx, [ebp - 0xd0]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0xd0]
push eax
call fcn.00438104
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x414202
push eax
lea ecx, [ebp - 0xe4]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0xe4]
push eax
call fcn.00438104
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebx + 0x48], 0
jne 0x414221
cmp dword [ebx + 0x68], 0
jne 0x414221
cmp dword [ebx + 0x4c], 0
je 0x41443f
push dword [ebx + 0x54]
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.00410ce0
or esi, 0xffffffff
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 2
cmp dword [ebx + 0x68], 0
je 0x4142b0
cmp dword [ebx + 0x6c], 8
jb 0x414256
mov eax, dword [ebx + 0x58]
jmp 0x414259
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 0x4142b0
lea ecx, [ebx + 0x58]
call fcn.004096e0
push eax
push 0x466cf0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xf8]
push eax
call fcn.0041b5b0
add esp, 0x10
lea eax, [ebp - 0xf8]
push 0x46edb0
push eax
call fcn.00438104
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 0x4142e8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x10c]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0x10c]
push eax
call fcn.00438104
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x414320
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x120]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0x120]
push eax
call fcn.00438104
test eax, eax
jne 0x414345
push 0x2ef1
lea ecx, [ebp - 0x134]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0x134]
push eax
call fcn.00438104
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x414369
push eax
lea ecx, [ebp - 0x148]
call fcn.0041b520
push 0x46edb0
lea eax, [ebp - 0x148]
push eax
call fcn.00438104
mov ecx, dword [ebx + 0x4c]
mov dword [ebp - 0x20], ecx
test ecx, ecx
je 0x4143bb
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 [0x4572d8]
mov ecx, dword [ebp - 0x20]
call edi
mov eax, dword [ebx + 0x2c]
add dword [ebx + 0x70], eax
test eax, eax
jne 0x4142b0
lea ecx, [ebp - 0x24]
call fcn.00412660
lea ecx, [ebp - 0x30]
call fcn.00410c40
jmp 0x41443f
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4143db
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.00414fd0
cmp esi, 0xffffffff
je 0x414398
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 0x414398
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.0041b5b0
add esp, 0xc
lea eax, [ebp - 0x15c]
push 0x46edb0
push eax
call fcn.00438104
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x34]
mov dword [eax + 0x30], ecx
mov eax, 0x41443c
ret
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x414455
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.0041e04a
mov esp, ebp
pop ebp
ret