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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7610
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x517074]
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 0x46a28e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x44]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0x44]
push eax
call fcn.004a4f7b
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 0x46a2cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x54]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0x54]
push eax
call fcn.004a4f7b
test eax, eax
jne 0x46a2eb
push 0x2ef1
lea ecx, [ebp - 0x64]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0x64]
push eax
call fcn.004a4f7b
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x46a309
push eax
lea ecx, [ebp - 0x74]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0x74]
push eax
call fcn.004a4f7b
push 0
push dword [ebx + 0x10]
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
jne 0x46a33b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x84]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0x84]
push eax
call fcn.004a4f7b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x46a373
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x94]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0x94]
push eax
call fcn.004a4f7b
test eax, eax
jne 0x46a398
push 0x2ef1
lea ecx, [ebp - 0xa4]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0xa4]
push eax
call fcn.004a4f7b
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x46a3bc
push eax
lea ecx, [ebp - 0xb4]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0xb4]
push eax
call fcn.004a4f7b
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [ebx + 0x48], 0
jne 0x46a3d5
cmp dword [ebx + 0x5c], 0
je 0x46a5bd
push 0x10000
call fcn.0048bf2e
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 0x46a460
cmp dword [ebx + 0x60], 8
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x2c], eax
jb 0x46a405
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 0x46a460
mov ecx, dword [ebp - 0x2c]
call fcn.004140f0
push eax
push 0x4fb1b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0xc4]
push eax
call fcn.00477100
add esp, 0x10
lea eax, [ebp - 0xc4]
push 0x513ed8
push eax
call fcn.004a4f7b
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 0x46a498
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xd4]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0xd4]
push eax
call fcn.004a4f7b
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x46a4d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0xe4]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0xe4]
push eax
call fcn.004a4f7b
test eax, eax
jne 0x46a4f5
push 0x2ef1
lea ecx, [ebp - 0xf4]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0xf4]
push eax
call fcn.004a4f7b
mov eax, dword [ebx + 0x28]
test eax, eax
je 0x46a519
push eax
lea ecx, [ebp - 0x104]
call fcn.00477040
push 0x513ed8
lea eax, [ebp - 0x104]
push eax
call fcn.004a4f7b
mov ecx, dword [ebx + 0x48]
test ecx, ecx
je 0x46a536
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.0046b040
cmp edi, 0xffffffff
je 0x46a583
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 0x46a583
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.00477100
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x513ed8
push eax
call fcn.004a4f7b
mov eax, dword [ebx + 0x2c]
add dword [ebx + 0x64], eax
test eax, eax
jne 0x46a460
lea ecx, [ebp - 0x20]
call fcn.004135d0
test esi, esi
je 0x46a5bd
push esi
call fcn.0048bd21
add esp, 4
jmp 0x46a5bd
push dword [ebx + 0x18]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
je 0x46a5d3
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.0048bc9e
mov esp, ebp
pop ebp
ret