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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x453670
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x46f074]
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 - 0x30], ebx
push 0
push 0
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
test eax, eax
jne 0x413f2e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x44]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0x44]
push eax
call fcn.00437394
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 0x413f6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x54]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0x54]
push eax
call fcn.00437394
test eax, eax
jne 0x413f8b
push 0x2ef1
lea ecx, [ebp - 0x64]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0x64]
push eax
call fcn.00437394
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x413fa9
push eax
lea ecx, [ebp - 0x74]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0x74]
push eax
call fcn.00437394
push 0
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x413fdb
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x84]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0x84]
push eax
call fcn.00437394
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x414013
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0x94]
push eax
call fcn.00437394
test eax, eax
jne 0x414038
push 0x2ef1
lea ecx, [ebp - 0xa4]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0xa4]
push eax
call fcn.00437394
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x41405c
push eax
lea ecx, [ebp - 0xb4]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0xb4]
push eax
call fcn.00437394
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebx + 0x48], 0
jne 0x414075
cmp dword [ebx + 0x5c], 0
je 0x41425d
push 0x10000
call fcn.0041d96a
mov esi, eax
add esp, 4
mov dword [ebp - 0x28], esi
or edi, 0xffffffff
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 2
cmp dword [ebx + 0x5c], 0
je 0x414100
cmp dword [ebx + 0x60], 8
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x2c], eax
jb 0x4140a5
mov eax, dword [eax]
push 0
push 0x80
push 4
push 0
push 5
push 4
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp - 0x20], edi
cmp edi, 0xffffffff
jne 0x414100
mov ecx, dword [ebp - 0x2c]
call fcn.00409660
push eax
push 0x465c64
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.0041a770
add esp, 0x10
lea eax, [ebp - 0xc4]
push 0x46d888
push eax
call fcn.00437394
nop word [eax + eax]
push 0
push 0x10000
push esi
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x414138
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xd4]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0xd4]
push eax
call fcn.00437394
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x414170
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0xe4]
push eax
call fcn.00437394
test eax, eax
jne 0x414195
push 0x2ef1
lea ecx, [ebp - 0xf4]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0xf4]
push eax
call fcn.00437394
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x4141b9
push eax
lea ecx, [ebp - 0x104]
call fcn.0041a6e0
push 0x46d888
lea eax, [ebp - 0x104]
push eax
call fcn.00437394
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x4141d6
mov eax, dword [ebx + 0x2c]
mov byte [ebp - 0x2c], 0
add eax, esi
push dword [ebp - 0x2c]
push eax
push esi
push dword [ecx + 4]
call fcn.00414c50
cmp edi, 0xffffffff
je 0x414223
push 0
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push eax
push dword [ebx + 0x2c]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x414223
push str.Unable_to_write_to_the_file_
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push eax
call fcn.0041a770
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x46d888
push eax
call fcn.00437394
mov eax, dword [ebx + 0x2c]
add dword [ebx + 0x64], eax
test eax, eax
jne 0x414100
lea ecx, [ebp - 0x20]
call fcn.004124c0
test esi, esi
je 0x41425d
push esi
call fcn.0041d22b
add esp, 4
jmp 0x41425d
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x414273
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.0041d21a
mov esp, ebp
pop ebp
ret