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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x44af58
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
mov eax, dword [0x466910]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov eax, dword [0x46ac04]
xor ebx, ebx
mov dword [esp + 0x10], ebx
cmp eax, ebx
jne 0x41519e
mov ecx, dword [edi + 0x2dc]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x14], ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x4150b5
mov eax, dword [esp + 0xc]
cmp eax, ebx
je 0x41519e
inc eax
push eax
call fcn.0041595d
mov edx, dword [esp + 0x10]
inc edx
push edx
mov esi, eax
push ebx
push esi
call fcn.00437170
mov ecx, dword [esp + 0x1c]
mov edx, dword [edi + 0x2dc]
add esp, 0x10
lea eax, [esp + 0x10]
push eax
push ecx
push esi
push edx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x4150ea
mov ecx, dword [esp + 0x10]
mov edx, dword [ebp + 8]
push ebx
lea eax, [esp + 0x18]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x415191
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
cmp esi, ebx
je 0x41502a
push esi
call fcn.00415952
add esp, 4
mov ecx, dword [edi + 0x2e4]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x80
je 0x415062
cmp eax, 0x102
je 0x415057
cmp eax, 0xffffffff
jne 0x415073
push 1
push ebx
push ebx
push str.Wait_failed__may_result_in_unexpected_behaviour
jmp 0x41506b
push 1
push ebx
push ebx
push str.Wait_timeout__should_not_have_timed_out_as_waiting_for_infinite
jmp 0x41506b
push 1
push ebx
push ebx
push str.Wait_abandoned__protected_data_may_be_corrupt
call fcn.00404830
add esp, 0x10
mov eax, dword [edi + 0x2e4]
mov edx, dword [esp + 0x14]
add dword [edi + 0x2d0], edx
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esp + 0xc], ebx
jbe 0x41519e
mov eax, dword [0x46ac04]
cmp eax, ebx
je 0x414f8e
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [edi + 0x208]
push ecx
push edi
push str.Problem_with_the_Host_Connection___s:_s:Error_Code:_d
mov ecx, 0x467be0
call fcn.0040f810
add esp, 0x10
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
call fcn.004163a8
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x415104
push 0x80004005
call fcn.004017a0
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [esp + 0x1c]
push 0x458740
push ecx
call fcn.00404600
lea edx, [edi + 0x208]
push edx
push edi
push str.WinHttpReadData_Unable_to_read_from_Host:_s:_s
mov ecx, 0x467be0
call fcn.0040f810
add esp, 0x18
cmp esi, ebx
je 0x415155
push esi
call fcn.00415952
add esp, 4
mov dword [esp + 0x28], 0xffffffff
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41519e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp esi, ebx
je 0x41519e
push esi
call fcn.00415952
add esp, 4
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4