Function at 0x4143b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x436680]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [esi], 0
push edi
mov edi, ecx
je 0x4143ee
lea eax, [esi + 0x1158]
test eax, eax
je 0x4143e2
lea eax, [esi + 0x1168]
push str.There_is_already_a_PK2_opened.
jmp 0x41463e
xor eax, eax
push str.There_is_already_a_PK2_opened.
jmp 0x41463e
push 0x431ae4
push edi
push esi
call fcn.00419978
mov eax, dword [esi]
add esp, 0xc
test eax, eax
jne 0x41443b
lea ecx, [esi + 0x1158]
test ecx, ecx
je 0x414415
lea eax, [esi + 0x1168]
jmp 0x414417
xor eax, eax
push 0x431ae8
push ecx
push edi
push ecx
push str.Could_not_open_the_file__
push eax
call fcn.0040bb80
add esp, 0xc
push eax
call fcn.0040bb80
add esp, 0xc
jmp 0x41463e
push eax
push 0x100
lea edi, [esi + 4]
push 1
push edi
call fcn.00419c09
add esp, 0x10
cmp eax, 0x100
je 0x41448d
mov edx, dword [esi]
push edx
call fcn.00419c93
lea eax, [esi + 0x1158]
add esp, 4
mov dword [esi], 0
test eax, eax
je 0x414481
lea eax, [esi + 0x1168]
push str.Could_not_read_in_the_PK2Header.
jmp 0x41463e
xor eax, eax
push str.Could_not_read_in_the_PK2Header.
jmp 0x41463e
mov ecx, dword [str.JoyMax_File_Manager__n]
mov edx, dword [0x431b30]
xor eax, eax
mov dword [ebp - 0x23], eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov dword [ebp - 0xb], eax
mov byte [ebp - 7], al
mov eax, dword [0x431b34]
mov dword [ebp - 0x24], ecx
mov ecx, dword [0x431b38]
mov dword [ebp - 0x20], edx
mov edx, dword [0x431b3c]
mov dword [ebp - 0x1c], eax
mov al, byte [0x431b40]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edx
mov byte [ebp - 0x10], al
mov edx, 0x1e
mov eax, edi
lea ecx, [ebp - 0x24]
mov edi, dword [ecx]
cmp edi, dword [eax]
jne 0x414614
sub edx, 4
add eax, 4
add ecx, 4
cmp edx, 4
jae 0x4144e5
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x414614
mov al, byte [eax + 1]
cmp al, byte [ecx + 1]
jne 0x414614
cmp dword [esi + 0x22], 0x1000002
je 0x414553
mov ecx, dword [esi]
push ecx
call fcn.00419c93
lea edx, [esi + 0x1158]
add esp, 4
mov dword [esi], 0
test edx, edx
je 0x414547
lea eax, [esi + 0x1168]
push str.Invalid_PK2_version.
jmp 0x41463e
xor eax, eax
push str.Invalid_PK2_version.
jmp 0x41463e
mov eax, dword [esi]
push eax
call fcn.0041a051
add esp, 4
cmp byte [esi + 0x26], 0
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], edx
jne 0x414581
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418429
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [ebp - 0x17], eax
mov dword [ebp - 0x13], eax
mov dword [ebp - 0xf], eax
mov word [ebp - 0xb], ax
mov byte [ebp - 9], al
lea eax, [esi + 0x110]
push eax
lea eax, [ebp - 0x18]
mov byte [ebp - 0x18], 0
call fcn.004120f0
xor eax, eax
mov dword [ebp - 0x15], eax
mov dword [ebp - 0x11], eax
mov dword [ebp - 0xd], eax
mov byte [ebp - 9], al
lea ecx, [eax + 0x10]
lea eax, [esi + 0x27]
lea edx, [ebp - 0x18]
sub edx, eax
nop
mov edi, dword [edx + eax]
cmp edi, dword [eax]
jne 0x4145e3
sub ecx, 4
add eax, 4
cmp ecx, 4
jae 0x4145c0
mov al, 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00418429
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
push ecx
call fcn.00419c93
lea edx, [esi + 0x1158]
add esp, 4
mov dword [esi], 0
test edx, edx
je 0x41460b
lea eax, [esi + 0x1168]
push str.Invalid_Blowfish_key.
jmp 0x41463e
xor eax, eax
push str.Invalid_Blowfish_key.
jmp 0x41463e
mov eax, dword [esi]
push eax
call fcn.00419c93
lea ecx, [esi + 0x1158]
add esp, 4
mov dword [esi], 0
test ecx, ecx
je 0x414637
lea eax, [esi + 0x1168]
jmp 0x414639
xor eax, eax
push str.Invalid_PK2_name.
push eax
call fcn.0040bb80
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor al, al
pop edi
call fcn.00418429
mov esp, ebp
pop ebp
ret