Function at 0x45d950
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59a802
mov eax, dword fs:[0]
push eax
push ebx
push esi
push edi
mov eax, dword [0x621810]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x24]
mov edi, dword [ebp + 0x10]
cmp eax, 0xffffffff
je 0x45dba6
mov edx, dword [ebp + 0xc]
xor esi, esi
push esi
lea ecx, [ebp + 8]
push ecx
push edi
push edx
push eax
mov dword [ebp + 8], esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x45da6b
cmp dword [ebp + 8], edi
je 0x45da49
lea ebx, [esi + 1]
test byte [0x6353fc], bl
jne 0x45d9db
or dword [0x6353fc], ebx
mov dword [ebp - 4], esi
call fcn.004032f6
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [0x635400]
mov edx, dword [ecx + 8]
push eax
push edi
push str.7z_ReadFile
push str.UnZip.cpp
push 0x7a
push esi
push 0x635400
call edx
add esp, 0x1c
test byte [0x6353d0], 1
jne 0x45da2b
or dword [0x6353d0], ebx
mov dword [ebp - 4], ebx
call fcn.004033c3
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [0x6353d4]
mov edx, dword [ecx + 4]
push eax
push edi
push str.7z_ReadFile
push esi
push 0x6353d4
call edx
add esp, 0x14
mov eax, dword [ebp + 0x14]
cmp eax, esi
je 0x45da55
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
test byte [0x6353fc], 1
mov dword [ebx + 0x2c], eax
jne 0x45db26
or dword [0x6353fc], 1
mov dword [ebp - 4], 2
push 0x635408
mov dword [0x635400], 0x5ff3e8
mov dword [0x635404], esi
mov dword [0x635420], esi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov byte [ebp - 4], 3
push 8
mov dword [0x635400], 0x5ff428
call fcn.0048bf08
add esp, 4
cmp eax, esi
je 0x45dad8
mov dword [eax], 0xffffffff
mov byte [eax + 4], 1
mov esi, eax
push 0x635408
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x635404]
inc dword [0x635420]
test eax, eax
je 0x45dafb
push eax
call fcn.0048bcc1
add esp, 4
dec dword [0x635420]
push 0x635408
mov dword [0x635404], esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x5ae29a
call fcn.0048c9f3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 0x2c]
mov ecx, dword [0x635400]
push edx
mov edx, dword [ecx + 8]
push edi
push eax
push str.7z_ReadFile_error__d___u___u_
push str.UnZip.cpp
push 0x83
push 2
push 0x635400
call edx
add esp, 0x20
test byte [0x6353d0], 1
jne 0x45db83
or dword [0x6353d0], 1
mov dword [ebp - 4], 4
call fcn.004033c3
push 0x5ae2ae
call fcn.0048c9f3
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
mov ecx, dword [ebx + 0x2c]
mov edx, dword [0x6353d4]
push eax
mov eax, dword [edx + 4]
push edi
push ecx
push str.7z_ReadFile_error__d___u___u_
push 2
push 0x6353d4
call eax
add esp, 0x18
mov ecx, dword [ebp + 0x14]
mov dword [ecx], edi
mov eax, 0x80030005
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10