Function at 0x407ff0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x41f7ad
mov eax, dword fs:[0]
push eax
sub esp, 0xa48
mov eax, dword [0x4262d0]
xor eax, esp
mov dword [esp + 0xa40], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4262d0]
xor eax, esp
push eax
lea eax, [esp + 0xa5c]
mov dword fs:[0], eax
mov ebx, dword [0x429608]
mov eax, dword [esp + 0xa6c]
mov dword [esp + 0x34], ecx
mov ecx, dword [ebx]
xor edi, edi
cmp ecx, edi
jne 0x4080c2
push edi
push 0x422720
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.004053a0
lea ecx, [ebx + 0x1164]
lea eax, [esp + 0x14]
mov dword [esp + 0xa64], edi
call fcn.00407350
mov dword [esp + 0xa64], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x408099
mov edx, dword [esp + 0x18]
push edx
call fcn.0040ba9a
add esp, 4
lea eax, [ebx + 0x1158]
test eax, eax
je 0x4080ab
lea eax, [ebx + 0x1160]
jmp 0x4080ad
xor eax, eax
push str.There_is_no_PK2_loaded_yet.
push eax
call fcn.00405fe0
add esp, 8
xor al, al
jmp 0x4084ab
cmp byte [eax], 1
je 0x40814d
push edi
push 0x422720
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.004053a0
lea ecx, [ebx + 0x1164]
lea eax, [esp + 0x14]
mov dword [esp + 0xa64], 1
call fcn.00407350
mov dword [esp + 0xa64], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x408124
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0040ba9a
add esp, 4
lea edx, [ebx + 0x1158]
test edx, edx
je 0x408136
lea eax, [ebx + 0x1160]
jmp 0x408138
xor eax, eax
push str.Invalid_entry_type._Only_folders_are_allowed.
push eax
call fcn.00405fe0
add esp, 8
xor al, al
jmp 0x4084ab
mov edx, dword [eax + 0x6a]
mov eax, dword [eax + 0x6e]
cmp eax, dword [ebx + 0x10c]
jg 0x4081d5
jl 0x408165
cmp edx, dword [ebx + 0x108]
jae 0x4081d5
push 0x422720
lea ecx, [esp + 0x18]
call fcn.00403b60
lea ecx, [ebx + 0x1164]
lea eax, [esp + 0x14]
mov dword [esp + 0xa64], 2
call fcn.00407350
mov dword [esp + 0xa64], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x4081ac
mov eax, dword [esp + 0x18]
push eax
call fcn.0040ba9a
add esp, 4
lea ecx, [ebx + 0x1158]
test ecx, ecx
je 0x4081be
lea eax, [ebx + 0x1160]
jmp 0x4081c0
xor eax, eax
push str.Invalid_seek_index.
push eax
call fcn.00405fe0
add esp, 8
xor al, al
jmp 0x4084ab
push edi
push eax
push edx
push ecx
call fcn.0040c7c8
add esp, 0x10
test eax, eax
je 0x408233
push 0x422720
lea ecx, [esp + 0x18]
call fcn.00403b60
lea ecx, [ebx + 0x1164]
lea eax, [esp + 0x14]
mov dword [esp + 0xa64], 3
call fcn.00407350
lea ecx, [esp + 0x14]
mov dword [esp + 0xa64], 0xffffffff
call fcn.00403bd0
lea edx, [ebx + 0x1158]
test edx, edx
je 0x4081be
lea eax, [ebx + 0x1160]
jmp 0x4081c0
mov eax, dword [ebx]
push eax
push 0xa00
lea ecx, [esp + 0x5c]
push 1
push ecx
call fcn.0040c332
add esp, 0x10
cmp eax, 0xa00
jne 0x408318
mov dword [esp + 0x30], edi
lea esi, [esp + 0x54]
cmp byte [ebx + 0x26], 0
je 0x408272
push esi
lea edx, [ebx + 0x110]
push edx
mov eax, esi
call fcn.00407080
cmp byte [esi + 0x7e], 0
jne 0x40839a
cmp byte [esi + 0x7f], 0
jne 0x40839a
mov al, byte [esi]
cmp al, 1
je 0x408290
cmp al, 2
jne 0x4082b7
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 0x14]
mov ecx, dword [edi + 4]
push esi
push ecx
push edi
call fcn.00409e40
mov ecx, dword [esp + 0x34]
mov ebp, eax
call fcn.00409e80
mov dword [edi + 4], ebp
mov eax, dword [ebp + 4]
mov dword [eax], ebp
xor edi, edi
mov eax, dword [esp + 0x30]
inc eax
sub esi, 0xffffff80
cmp eax, 0x14
mov dword [esp + 0x30], eax
jl 0x40825d
mov ecx, dword [esp + 0xa4a]
mov edx, dword [esp + 0xa4e]
mov eax, ecx
or eax, edx
je 0x4084a9
mov eax, dword [ebx]
push edi
push edx
push ecx
push eax
call fcn.0040c7c8
add esp, 0x10
test eax, eax
jne 0x40841c
mov ecx, dword [ebx]
push ecx
push 0xa00
lea edx, [esp + 0x5c]
push 1
push edx
call fcn.0040c332
add esp, 0x10
cmp eax, 0xa00
je 0x408255
push edi
push 0x422720
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.004053a0
lea ecx, [ebx + 0x1164]
lea eax, [esp + 0x14]
mov dword [esp + 0xa64], 4
call fcn.00407350
mov dword [esp + 0xa64], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x408371
mov eax, dword [esp + 0x18]
push eax
call fcn.0040ba9a
add esp, 4
lea ecx, [ebx + 0x1158]
test ecx, ecx
je 0x408383
lea eax, [ebx + 0x1160]
jmp 0x408385
xor eax, eax
push str.Could_not_read_a_PK2EntryBlock_object
push eax
call fcn.00405fe0
add esp, 8
xor al, al
jmp 0x4084ab
push edi
push 0x422720
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], edi
mov byte [esp + 0x20], 0
call fcn.004053a0
lea ecx, [ebx + 0x1164]
lea eax, [esp + 0x14]
mov dword [esp + 0xa64], 5
call fcn.00407350
mov dword [esp + 0xa64], 0xffffffff
cmp dword [esp + 0x2c], 0x10
jb 0x4083f3
mov edx, dword [esp + 0x18]
push edx
call fcn.0040ba9a
add esp, 4
lea eax, [ebx + 0x1158]
test eax, eax
je 0x408405
lea eax, [ebx + 0x1160]
jmp 0x408407
xor eax, eax
push str.The_padding_is_not_NULL._User_seek_error.
push eax
call fcn.00405fe0
add esp, 8
xor al, al
jmp 0x4084ab
push edi
mov esi, 0xf
push 0x422720
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], edi
mov byte [esp + 0x44], 0
call fcn.004053a0
lea ecx, [ebx + 0x1164]
lea eax, [esp + 0x38]
mov dword [esp + 0xa64], 6
call fcn.00407350
mov dword [esp + 0xa64], 0xffffffff
cmp dword [esp + 0x50], 0x10
jb 0x408476
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0040ba9a
add esp, 4
lea edx, [ebx + 0x1158]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], edi
mov byte [esp + 0x3c], 0
test edx, edx
je 0x408495
lea eax, [ebx + 0x1160]
jmp 0x408497
xor eax, eax
push str.Invalid_seek_index_for_nextChain.
push eax
call fcn.00405fe0
add esp, 8
xor al, al
jmp 0x4084ab
mov al, 1
mov ecx, dword [esp + 0xa5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xa40]
xor ecx, esp
call fcn.0040b112
add esp, 0xa54
ret 4