Function at 0x404255
Capabilities:
Delete file
Initialize winhttp library
Prepare http request
Receive http response
Write file on windows

Disassembly:
push 0x9c
mov eax, 0x561f0c
call fcn.00531cbc
mov edi, ecx
xor ebx, ebx
lea edx, [ebp + 8]
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x90]
mov esi, ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x18], ebx
call fcn.00403534
push ebx
push ebx
push ebx
push ebx
push str.CallHandler
mov byte [ebp - 4], 1
call dword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov ecx, eax
mov dword [ebp - 0xa8], ecx
test ecx, ecx
jne 0x4042b0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4044a4
cmp dword [ebp - 0x34], 8
lea eax, [ebp - 0x48]
push ebx
cmovae eax, dword [ebp - 0x48]
push 0x50
push eax
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpConnect]
mov ecx, eax
mov dword [ebp - 0xa4], ecx
test ecx, ecx
jne 0x4042df
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x404498
cmp dword [ebp - 0x64], 8
lea eax, [ebp - 0x78]
push ebx
cmovae eax, dword [ebp - 0x78]
push ebx
push ebx
push ebx
push eax
push 0x5a77c0
push ecx
call dword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov ebx, eax
test ebx, ebx
jne 0x40430e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x40448a
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpSendRequest]
cmp eax, 1
jne 0x40447b
push 0
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
je 0x40447b
add edi, 0x1c
cmp dword [edi + 0x14], 8
jb 0x404344
mov eax, dword [edi]
jmp 0x404346
mov eax, edi
push 0
push 0x80
push 4
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x98], eax
cmp eax, 0xffffffff
je 0x40447b
xor eax, eax
mov dword [ebp - 0x9c], eax
and dword [ebp - 0x94], 0
lea eax, [ebp - 0x94]
push eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpQueryDataAvailable]
test eax, eax
je 0x40444a
mov eax, dword [ebp - 0x94]
inc eax
push eax
call fcn.00418fad
mov dword [ebp - 0xa0], eax
pop ecx
test eax, eax
je 0x404441
mov ecx, dword [ebp - 0x94]
inc ecx
push ecx
push 0
push eax
call fcn.00532330
add esp, 0xc
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x94]
push dword [ebp - 0xa0]
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x40444a
and dword [ebp - 0x14], 0
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 0x94]
push dword [ebp - 0xa0]
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x404452
mov eax, dword [ebp - 0x9c]
add eax, dword [ebp - 0x14]
push 0
push eax
push 0x3e80
push dword [0x5dda0c]
mov dword [ebp - 0x9c], eax
call dword [sym.imp.USER32.dll_PostMessageW]
push dword [ebp - 0xa0]
call fcn.00418fa8
cmp dword [ebp - 0x94], 0
pop ecx
ja 0x404376
jmp 0x404452
and dword [ebp - 0x94], 0
jmp 0x404452
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x9c], 0x10000
jae 0x404483
cmp dword [edi + 0x14], 8
jb 0x404472
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x404483
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push ebx
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
push dword [ebp - 0xa4]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
xor ebx, ebx
push dword [ebp - 0xa8]
call dword [sym.imp.WINHTTP.dll_WinHttpCloseHandle]
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0xa8], esp
push 0x5a76f4
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 2
mov ecx, esp
mov dword [ebp - 0xa4], esp
push 0x5a77de
call fcn.00402387
sub esp, 0x18
mov byte [ebp - 4], 3
mov ecx, esp
push str.winHttpDownload
call fcn.00402387
xor dl, dl
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0040516a
add esp, 0x48
lea ecx, [ebp - 0x90]
call fcn.004038b3
push ebx
push 1
lea ecx, [ebp + 8]
call fcn.004034f0
mov eax, esi
call fcn.00531c6b
ret 0x18