Function at 0x436870
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4cd17b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c4
mov eax, dword [0x4f96c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4368b2
push eax
call fcn.004a8674
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x4368c2
push eax
call fcn.004a8674
add esp, 4
lea eax, [ebp - 0x94]
mov dword [esi], 0
push 0xffffffffffffffff
mov dword [esi + 4], 0
lea ecx, [ebp - 0x98]
push dword [0x4fa7b0]
mov dword [ebp - 0x98], eax
xor eax, eax
mov word [ebp - 0x94], ax
call fcn.0042c470
mov dword [ebp - 4], 0
mov eax, dword [0x4fa838]
cmp word [eax], 0
jne 0x4369e0
test ebx, ebx
je 0x43691d
push ebx
lea ecx, [ebp - 0x98]
call fcn.0042c340
push 0
push 0x80
push 3
push 0
push 1
push accept
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x43694e
push 0x63
push str.Error_opening_file
jmp 0x436abb
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
jne 0x436969
push 0x63
push str.File_is_empty
jmp 0x436abb
cmp edi, 0x400000
jbe 0x43697d
push 0x63
push str.File_too_large
jmp 0x436abb
push edi
mov dword [ebp - 0x2d0], 0
call fcn.004a71b0
add esp, 4
mov dword [ebp - 0x2cc], eax
lea ecx, [ebp - 0x2d0]
push 0
push ecx
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], edi
je 0x4369d9
mov edi, dword [ebp - 0x2cc]
push edi
call fcn.004a8a9a
add esp, 4
mov ecx, esi
call fcn.00416210
push 0x63
push str.Could_not_read_file
jmp 0x436abb
push ecx
push edi
jmp 0x436af3
push eax
lea ecx, [ebp - 0x98]
call fcn.0042c340
cmp byte [0x4fd150], 0
je 0x4369fd
mov edi, dword [0x4fd14c]
jmp 0x436a11
mov ecx, dword [ebp - 0x98]
xor edx, edx
push 2
call fcn.0043b740
add esp, 4
mov edi, eax
test edi, edi
jne 0x436a21
push 0x63
push str.Error_opening_zip_file
jmp 0x436abb
lea eax, [ebp - 0x2c8]
mov edx, ebx
push eax
lea eax, [ebp - 0x2d0]
push eax
push ecx
mov ecx, edi
call fcn.0043b7c0
add esp, 0xc
test eax, eax
je 0x436a49
push 0x63
push str.Could_not_find_ziped_file
jmp 0x436abb
mov ebx, dword [ebp - 0x9c]
test ebx, ebx
jne 0x436a5c
push 0x63
push str.File_is_empty
jmp 0x436abb
cmp ebx, 0x400000
jbe 0x436a6d
push 0x63
push str.File_too_large
jmp 0x436abb
push ebx
call fcn.004a71b0
mov edx, dword [ebp - 0x2d0]
mov ecx, edi
push ebx
push eax
mov dword [ebp - 0x2cc], eax
call fcn.0043b8e0
add esp, 0xc
test eax, eax
je 0x436ae1
cmp eax, 0x600
je 0x436ae1
push dword [ebp - 0x2cc]
call fcn.004a8a9a
add esp, 4
cmp byte [0x4fd150], 0
jne 0x436ab4
mov ecx, edi
call fcn.0043b930
push 0x63
push str.Could_not_unzip_file
lea eax, [esi + 0x10]
push eax
call fcn.004c9fe4
add esp, 0xc
lea eax, [esi + 0xd8]
push 0x31
push 0x4e7774
push eax
call fcn.004c9fe4
add esp, 0xc
xor bl, bl
jmp 0x436b0c
cmp byte [0x4fd150], 0
jne 0x436af1
mov ecx, edi
call fcn.0043b930
push ecx
push ebx
mov edi, dword [ebp - 0x2cc]
mov ecx, esi
push edi
call fcn.004367b0
push edi
mov bl, al
call fcn.004a8a9a
add esp, 4
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x436b25
push eax
call fcn.004a8674
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a79be
mov esp, ebp
pop ebp
ret 8