Function at 0x42b500
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x408c
call fcn.004439f0
mov eax, dword [0x47b800]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov dword [ebp - 0x4078], eax
xor ebx, ebx
mov eax, dword [ebp + 0x14]
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4088], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x408c], eax
mov eax, dword [ebp + 0x1c]
push esi
push 0x4000
mov dword [ebp - 0x407c], eax
mov dword [eax], ebx
lea eax, [ebp - 0x4014]
push 1
push eax
call fcn.0044eacb
push esi
mov edi, eax
call fcn.00445977
add esp, 0x14
test edi, edi
js 0x42b8b9
cmp edi, 0x4000
je 0x42b8b9
mov eax, dword [ebp - 0x407c]
mov dword [eax], str.file_format_error
cmp edi, 1
jl 0x42b8c5
cmp byte [ebp - 0x4014], bl
jne 0x42b8c5
cmp edi, 1
jle 0x42b8c5
mov al, byte [ebp - 0x4013]
mov byte [ebp - 0x4071], al
test al, al
je 0x42b5ba
cmp al, 3
jne 0x42b8c5
lea eax, [edi - 2]
cmp eax, 4
jl 0x42b8c5
cmp byte [ebp - 0x4012], bl
jne 0x42b8c5
cmp byte [ebp - 0x4011], bl
jne 0x42b8c5
cmp byte [ebp - 0x4010], bl
jne 0x42b8c5
cmp byte [ebp - 0x400f], bl
jne 0x42b8c5
mov eax, dword [ebp - 0x4078]
push 1
push 0
push eax
lea eax, [edi - 6]
push eax
lea eax, [ebp - 0x400e]
push eax
call fcn.0042e8f0
mov edx, eax
add esp, 0x14
mov dword [ebp - 0x4080], edx
test edx, edx
js 0x42b8c5
movzx ecx, byte [ebp + edx - 0x400e]
movzx eax, byte [ebp + edx - 0x400d]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + edx - 0x400c]
shl ecx, 8
or ecx, eax
movzx eax, byte [ebp + edx - 0x400b]
shl ecx, 8
or ecx, eax
push ecx
call fcn.004050d0
mov ecx, dword [ebp - 0x4080]
mov esi, eax
add ecx, 0xa
add esp, 4
mov dword [ebp - 0x4080], ecx
test esi, esi
js 0x42b8c5
mov eax, edi
sub eax, ecx
cmp eax, esi
jl 0x42b8c5
lea eax, [esi + 1]
push 1
push eax
call fcn.00404e60
mov ecx, eax
add esp, 8
mov dword [ebp - 0x4084], ecx
test ecx, ecx
je 0x42b6bd
mov eax, dword [ebp - 0x4080]
lea edx, [ebp - 0x4014]
push esi
add eax, edx
push eax
push ecx
call fcn.00444620
mov ecx, dword [ebp - 0x4084]
add esp, 0xc
mov byte [ecx + esi], bl
add esi, dword [ebp - 0x4080]
cmp dword [ebp - 0x4088], ebx
je 0x42b6dc
push ecx
call fcn.00404880
mov ecx, dword [ebp - 0x4088]
add esp, 4
mov dword [ecx], eax
mov ecx, dword [ebp - 0x4078]
mov eax, dword [ebp - 0x4084]
test ecx, ecx
je 0x42b6f1
mov dword [ecx + 0x20], eax
jmp 0x42b700
push eax
call fcn.00404e40
mov ecx, dword [ebp - 0x4078]
add esp, 4
cmp dword [ebp + 0x10], ebx
je 0x42b70f
mov ebx, 1
jmp 0x42b8c5
test ecx, ecx
jne 0x42b72b
mov eax, dword [ebp - 0x407c]
xor ebx, ebx
cmp byte [ebp - 0x4071], bl
setne bl
mov dword [eax], ecx
jmp 0x42b8c5
cmp byte [ebp - 0x4071], bl
je 0x42b7ad
lea eax, [ebp - 0x4070]
push eax
call fcn.0042a050
mov ecx, dword [ebp - 0x408c]
add esp, 4
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42b750
sub ecx, edx
lea eax, [ebp - 0x4070]
push ecx
push dword [ebp - 0x408c]
push eax
call fcn.0042a0e0
lea eax, [ebp - 0x4070]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00429f20
mov eax, edi
sub eax, esi
add eax, 7
and eax, 0xfffffff8
push eax
lea eax, [ebp - 0x4014]
add eax, esi
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00422e00
lea eax, [ebp - 0x14]
push 0x10
push eax
call fcn.0043ba20
mov ecx, dword [ebp - 0x4078]
add esp, 0x28
mov eax, edi
sub eax, esi
cmp eax, 4
jl 0x42b8c5
mov al, byte [ebp + esi - 0x4014]
cmp al, byte [ebp + esi - 0x4012]
jne 0x42b8a8
mov al, byte [ebp + esi - 0x4013]
cmp al, byte [ebp + esi - 0x4011]
jne 0x42b8a8
add esi, 4
mov eax, edi
sub eax, esi
push ecx
push eax
lea eax, [ebp - 0x4014]
add eax, esi
push eax
call fcn.0042e9f0
add esp, 0xc
test eax, eax
js 0x42b8c5
add esi, eax
mov eax, dword [ebp - 0x4078]
add eax, 0x1c
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp - 0x4014]
add eax, esi
push eax
call fcn.00421520
add esp, 0xc
test eax, eax
js 0x42b8c5
add esi, eax
mov eax, dword [ebp - 0x4078]
add eax, 0x18
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [ebp - 0x4014]
add eax, esi
push eax
call fcn.00421520
add esp, 0xc
test eax, eax
js 0x42b8c5
add esi, eax
mov eax, dword [ebp - 0x4078]
add eax, 0x14
sub edi, esi
push eax
lea eax, [ebp - 0x4014]
add eax, esi
push edi
push eax
call fcn.00421520
add esp, 0xc
test eax, eax
js 0x42b8c5
mov ebx, dword [ebp - 0x4078]
push ebx
call fcn.0042f0a0
add esp, 4
test eax, eax
jne 0x42b705
mov eax, dword [ebp - 0x407c]
push ebx
mov dword [eax], str.rsa_verify_failed
call fcn.0042e830
add esp, 4
xor ebx, ebx
jmp 0x42b8c5
mov eax, dword [ebp - 0x407c]
or ebx, 0xffffffff
mov dword [eax], str.wrong_passphrase
jmp 0x42b8c5
mov eax, dword [ebp - 0x407c]
mov dword [eax], str.error_reading_file
lea eax, [ebp - 0x4014]
push 0x4000
push eax
call fcn.0043ba20
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, ebx
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.004437dd
mov esp, ebp
pop ebp
ret