Function at 0x42bd80
Capabilities:
Get file size
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x473cfb
mov eax, dword fs:[0]
push eax
mov eax, 0x4024
call fcn.00455e70
mov eax, dword [0x4968d4]
xor eax, esp
mov dword [esp + 0x4020], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4968d4]
xor eax, esp
push eax
lea eax, [esp + 0x4038]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4050]
mov ebp, dword [esp + 0x4048]
xor ebx, ebx
cmp dword [esp + 0x404c], ebx
mov dword [esp + 0x28], eax
mov esi, ecx
mov eax, 0x47bd08
jne 0x42bde8
mov eax, 0x47bd04
push eax
push esi
push ebp
push str.Tried_to_getting_file_from_http_server_by_INET_:_URL___s___LocalFile___s___Continue___s_
push 1
call fcn.0042b8f0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov byte [0x49c04c], bl
call fcn.004321f0
push 0x3fff
lea ecx, [esp + 0x39]
push ebx
push ecx
mov dword [esp + 0x404c], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x40], bl
call fcn.00455df0
add esp, 0xc
push ebx
push 0x80
push 3
push ebx
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x42be73
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, ebx
push edi
jne 0x42be92
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.APIFileLength_returns_file_size_0
push 1
call fcn.0042b8f0
add esp, 8
call fcn.0042bc80
mov edi, eax
cmp edi, 0xffffffff
jne 0x42bed1
push esi
push str.Failed_to_FileCreate_file_:__s
call fcn.0042bb70
push esi
push str.Failed_to_FileCreate_file_:__s
jmp 0x42bea9
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
push str.Failed_to_APIOpenFile_file_:__s
call fcn.0042bb70
push esi
push str.Failed_to_APIOpenFile_file_:__s
push 8
call fcn.0042b8f0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00432200
mov eax, 1
jmp 0x42c0ab
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebp
lea ecx, [esp + 0x2c]
call fcn.00432230
test eax, eax
jne 0x42bef3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42beb3
mov eax, dword [esp + 0x18]
add eax, eax
cdq
push ebx
mov ebp, eax
mov esi, edx
call fcn.0042bcf0
add esp, 4
cmp esi, edx
jl 0x42bf48
jg 0x42bf11
cmp ebp, eax
jbe 0x42bf48
push str.disk_is_full
call fcn.0042bb70
push str.disk_is_full
push 8
call fcn.0042b8f0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00432200
mov eax, 5
jmp 0x42c0ab
cmp dword [esp + 0x2c], ebx
jne 0x42bf58
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0x4000
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.004324d0
mov esi, eax
cmp esi, ebx
jl 0x42bfe6
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
je 0x42c024
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x42bf94
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ecx
call eax
add esp, 8
add dword [esp + 0x14], esi
push ebx
lea edx, [esp + 0x34]
push edx
push esi
lea eax, [esp + 0x40]
push eax
push edi
call ebp
test eax, eax
je 0x42bfb2
cmp dword [esp + 0x30], 0xffffffff
jne 0x42bfc1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x42bf11
cmp byte [0x49c04c], bl
jne 0x42c07c
push 0x4000
lea ecx, [esp + 0x38]
push ecx
lea ecx, [esp + 0x24]
call fcn.004324d0
mov esi, eax
cmp esi, ebx
jge 0x42bf77
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Disconnected_INET_connection
call fcn.0042bb70
push str.Disconnected_INET_connection
push 8
call fcn.0042b8f0
add esp, 0xc
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00432200
mov eax, 4
jmp 0x42c0ab
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x42c03e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x70
je 0x42bf11
mov eax, dword [esp + 0x28]
cmp eax, ebx
je 0x42c055
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push edx
push ecx
call eax
add esp, 8
push str.Successed_to_download
push 1
call fcn.0042b8f0
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00432200
xor eax, eax
jmp 0x42c0ab
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Canceled_downloading
push 1
call fcn.0042b8f0
add esp, 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x4040], 0xffffffff
call fcn.00432200
mov eax, 2
mov ecx, dword [esp + 0x4038]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x4020]
xor ecx, esp
call fcn.00454567
add esp, 0x4030
ret