Function at 0x4221d0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x407c
call fcn.0042e280
mov eax, dword [0x43b160]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x40a0]
mov esi, ecx
push esi
push 0x4000
mov dword [esp + 0x4090], eax
lea eax, [esp + 0x90]
push 1
push eax
mov dword [esp + 0x20], 0
mov dword [edi], 0
call dword [0x42f1bc]
push esi
mov ebp, eax
call dword [0x42f1b8]
add esp, 0x14
test ebp, ebp
jl 0x42252b
cmp ebp, 0x4000
je 0x42252b
cmp ebp, 1
mov dword [edi], str.file_format_error
jl 0x422531
mov al, byte [esp + 0x88]
test al, al
jne 0x422531
lea ecx, [ebp - 1]
cmp ecx, 1
jl 0x422531
movzx eax, byte [esp + 0x89]
test eax, eax
mov dword [esp + 0x14], eax
je 0x42227a
cmp eax, 3
jne 0x422531
lea edx, [ebp - 2]
cmp edx, 4
jl 0x422531
mov al, byte [esp + 0x8a]
test al, al
jne 0x422531
mov al, byte [esp + 0x8b]
test al, al
jne 0x422531
mov al, byte [esp + 0x8c]
test al, al
jne 0x422531
mov al, byte [esp + 0x8d]
test al, al
jne 0x422531
mov edi, dword [esp + 0x4090]
push 1
push 0
push edi
lea eax, [esp + 0x9a]
push ebp
push eax
call fcn.00424870
mov ebx, eax
add esp, 0x14
add ebx, 6
js 0x422531
mov eax, dword [esp + 0x4094]
test eax, eax
jne 0x42250a
movzx edx, byte [esp + ebx + 0x8a]
movzx eax, byte [esp + ebx + 0x8b]
xor ecx, ecx
mov ch, byte [esp + ebx + 0x88]
add ebx, 4
mov cl, byte [esp + ebx + 0x85]
shl ecx, 8
or ecx, edx
shl ecx, 8
or ecx, eax
mov esi, ecx
mov ecx, ebp
sub ecx, ebx
cmp ecx, esi
mov dword [esp + 0x18], esi
jl 0x422531
lea edx, [esi + 1]
push edx
call fcn.00403da0
add esp, 4
test eax, eax
je 0x422370
mov ecx, esi
mov edx, ecx
shr ecx, 2
lea esi, [esp + ebx + 0x88]
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x4090]
mov ecx, edx
mov byte [eax + ecx], 0
mov esi, edx
mov ecx, dword [esp + 0x4098]
add ebx, esi
test ecx, ecx
je 0x42237f
mov dword [ecx], eax
test edi, edi
je 0x4224ec
mov dword [edi + 0x20], eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x422406
lea ecx, [esp + 0x2c]
push ecx
call fcn.00421b00
mov edx, dword [esp + 0x40a0]
mov eax, edx
add esp, 4
lea esi, [eax + 1]
jmp 0x4223b0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4223b0
sub eax, esi
push eax
push edx
lea edx, [esp + 0x34]
push edx
call fcn.00421b30
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.00421ca0
mov edx, ebp
sub edx, ebx
add edx, 7
and edx, 0xfffffff8
push edx
lea eax, [esp + ebx + 0xa0]
push eax
lea ecx, [esp + 0x38]
push ecx
call fcn.0041f3d0
add esp, 0x20
xor edx, edx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov eax, ebp
sub eax, ebx
cmp eax, 4
jl 0x422531
mov cl, byte [esp + ebx + 0x88]
cmp cl, byte [esp + ebx + 0x8a]
jne 0x422514
mov dl, byte [esp + ebx + 0x89]
cmp dl, byte [esp + ebx + 0x8b]
jne 0x422514
add ebx, 4
mov eax, ebp
push edi
sub eax, ebx
push eax
lea ecx, [esp + ebx + 0x90]
push ecx
call fcn.00424980
add esp, 0xc
test eax, eax
jl 0x422531
add ebx, eax
lea edx, [edi + 0x1c]
push edx
mov eax, ebp
sub eax, ebx
push eax
lea ecx, [esp + ebx + 0x90]
push ecx
call fcn.0041bf00
add esp, 0xc
test eax, eax
jl 0x422531
add ebx, eax
lea edx, [edi + 0x18]
push edx
mov eax, ebp
sub eax, ebx
push eax
lea ecx, [esp + ebx + 0x90]
push ecx
call fcn.0041bf00
add esp, 0xc
test eax, eax
jl 0x422531
add ebx, eax
lea edx, [edi + 0x14]
push edx
sub ebp, ebx
lea eax, [esp + ebx + 0x8c]
push ebp
push eax
call fcn.0041bf00
add esp, 0xc
test eax, eax
jl 0x422531
push edi
call fcn.00424ff0
add esp, 4
test eax, eax
jne 0x42250a
mov ecx, dword [esp + 0x40a0]
push edi
mov dword [ecx], str.rsa_verify_failed
call fcn.004251d0
add esp, 4
mov dword [esp + 0x10], 0
jmp 0x422531
mov eax, dword [esp + 0x14]
xor edx, edx
test eax, eax
mov eax, dword [esp + 0x40a0]
setne dl
mov dword [eax], 0
mov dword [esp + 0x10], edx
jmp 0x422531
mov dword [esp + 0x10], 1
jmp 0x422531
mov edx, dword [esp + 0x40a0]
mov dword [edx], str.wrong_passphrase
mov dword [esp + 0x10], 0xffffffff
jmp 0x422531
mov dword [edi], str.error_reading_file
mov ecx, dword [esp + 0x4088]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
call fcn.0042e26b
add esp, 0x407c
ret