Function at 0x4084e0
Capabilities:
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x41f72a
mov eax, dword fs:[0]
push eax
sub esp, 0xad0
mov eax, dword [0x4262d0]
xor eax, esp
mov dword [esp + 0xac8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4262d0]
xor eax, esp
push eax
lea eax, [esp + 0xae4]
mov dword fs:[0], eax
mov eax, dword [esp + 0xaf4]
mov dword [esp + 0x24], eax
mov eax, dword [0x429608]
xor esi, esi
mov edi, eax
mov dword [esp + 0x18], edi
cmp dword [eax], esi
jne 0x4085dd
push esi
push 0x422720
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], esi
mov byte [esp + 0xb0], 0
call fcn.004053a0
lea ecx, [edi + 0x1164]
lea eax, [esp + 0xa4]
mov dword [esp + 0xaec], esi
call fcn.00407350
mov dword [esp + 0xaec], 0xffffffff
cmp dword [esp + 0xbc], 0x10
jb 0x4085a5
mov ecx, dword [esp + 0xa8]
push ecx
call fcn.0040ba9a
add esp, 4
lea edx, [edi + 0x1158]
test edx, edx
je 0x4085c8
lea eax, [edi + 0x1160]
push str.There_is_no_PK2_loaded_yet.
push eax
call fcn.00405fe0
add esp, 8
jmp 0x408fb0
xor eax, eax
push str.There_is_no_PK2_loaded_yet.
push eax
call fcn.00405fe0
add esp, 8
jmp 0x408fb0
mov eax, 0x422674
mov dword [esp + 0xa0], 0xf
mov dword [esp + 0x9c], esi
mov byte [esp + 0x8c], 0
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x408600
sub eax, edx
push eax
push 0x422674
lea ecx, [esp + 0x90]
call fcn.004053a0
mov dword [esp + 0xaec], 1
mov ecx, dword [esp + 0xa0]
mov edx, dword [esp + 0x8c]
cmp ecx, 0x10
jb 0x4089b8
mov edi, edx
mov dword [esp + 0x14], edi
cmp edx, esi
je 0x408674
mov eax, edx
cmp ecx, 0x10
jae 0x408655
lea eax, [esp + 0x8c]
cmp eax, edi
ja 0x408674
mov eax, edx
cmp ecx, 0x10
jae 0x408667
lea eax, [esp + 0x8c]
mov ebx, dword [esp + 0x9c]
add eax, ebx
cmp edi, eax
jbe 0x40868e
call fcn.0040ba7f
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
mov edx, dword [esp + 0x8c]
lea ebp, [esp + 0x88]
mov eax, edx
cmp ecx, 0x10
jae 0x4086a3
lea eax, [esp + 0x8c]
lea edi, [ebx + eax]
cmp edi, esi
je 0x4086d0
mov eax, edx
cmp ecx, 0x10
jae 0x4086b8
lea eax, [esp + 0x8c]
cmp eax, edi
ja 0x4086d0
mov eax, edx
cmp ecx, 0x10
jae 0x4086ca
lea eax, [esp + 0x8c]
add eax, ebx
cmp edi, eax
jbe 0x4086ea
call fcn.0040ba7f
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
mov edx, dword [esp + 0x8c]
cmp ecx, 0x10
jb 0x4089c8
mov esi, edx
test edx, edx
je 0x40871f
mov eax, edx
cmp ecx, 0x10
jae 0x408707
lea eax, [esp + 0x8c]
cmp eax, esi
ja 0x40871f
mov eax, edx
cmp ecx, 0x10
jae 0x408719
lea eax, [esp + 0x8c]
add eax, ebx
cmp esi, eax
jbe 0x408724
call fcn.0040ba7f
mov ecx, dword [esp + 0x14]
push ecx
push ebp
mov byte [esp + 0x24], 0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
push edx
push eax
push fcn.0040c066
push edi
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.00407460
mov ecx, dword [esp + 0xc0]
mov edx, dword [esp + 0xac]
add esp, 0x20
cmp ecx, 0x10
jb 0x4089d4
mov esi, edx
mov dword [esp + 0x14], esi
test edx, edx
je 0x40879b
mov eax, edx
cmp ecx, 0x10
jae 0x40877c
lea eax, [esp + 0x8c]
cmp eax, esi
ja 0x40879b
mov eax, edx
cmp ecx, 0x10
jae 0x40878e
lea eax, [esp + 0x8c]
mov ebx, dword [esp + 0x9c]
add eax, ebx
cmp esi, eax
jbe 0x4087b5
call fcn.0040ba7f
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
mov edx, dword [esp + 0x8c]
lea ebp, [esp + 0x88]
mov eax, edx
cmp ecx, 0x10
jae 0x4087ca
lea eax, [esp + 0x8c]
lea edi, [eax + ebx]
test edi, edi
je 0x4087f7
mov eax, edx
cmp ecx, 0x10
jae 0x4087df
lea eax, [esp + 0x8c]
cmp eax, edi
ja 0x4087f7
mov eax, edx
cmp ecx, 0x10
jae 0x4087f1
lea eax, [esp + 0x8c]
add eax, ebx
cmp edi, eax
jbe 0x408811
call fcn.0040ba7f
mov ecx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x9c]
mov edx, dword [esp + 0x8c]
cmp ecx, 0x10
jb 0x4089e6
mov esi, edx
test edx, edx
je 0x408846
mov eax, edx
cmp ecx, 0x10
jae 0x40882e
lea eax, [esp + 0x8c]
cmp eax, esi
ja 0x408846
mov eax, edx
cmp ecx, 0x10
jae 0x408840
lea eax, [esp + 0x8c]
add ebx, eax
cmp esi, ebx
jbe 0x40884b
call fcn.0040ba7f
mov ecx, dword [esp + 0x14]
push ecx
push ebp
mov byte [esp + 0x24], 0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x24]
push edx
push eax
push 0x4075c0
push edi
lea ecx, [esp + 0x34]
push esi
push ecx
call fcn.00407460
add esp, 0x20
push 1
push 0x422548
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call fcn.004053a0
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0xa8]
lea ebx, [esp + 0x8c]
mov byte [esp + 0xaf0], 2
call fcn.004075d0
add esp, 4
mov byte [esp + 0xaec], 4
cmp dword [esp + 0xbc], 0x10
jb 0x4088ea
mov eax, dword [esp + 0xa8]
push eax
call fcn.0040ba9a
add esp, 4
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x20]
lea esi, [ebp + 0x11e0]
push edx
mov dword [esp + 0xc4], 0xf
mov dword [esp + 0xc0], 0
mov byte [esp + 0xb0], 0
call fcn.004092f0
mov ebx, dword [esp + 0x1c]
mov edi, dword [esi + 0x18]
mov esi, dword [esi]
test ebx, ebx
je 0x408935
cmp ebx, esi
je 0x40893a
call fcn.0040ba7f
mov esi, dword [esp + 0x20]
cmp esi, edi
je 0x4089f9
test ebx, ebx
jne 0x4089f2
call fcn.0040ba7f
cmp esi, dword [ebx + 0x18]
jne 0x40895d
call fcn.0040ba7f
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x28]
add esi, 0x28
mov ecx, 0x20
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00404710
mov ecx, dword [esp + 0x3c]
push ecx
call fcn.0040ba9a
mov edx, dword [esp + 0x2c]
add esp, 4
push edx
mov dword [esp + 0x40], 0
call fcn.0040ba9a
add esp, 4
cmp dword [esp + 0xa0], 0x10
jb 0x4089b1
mov eax, dword [esp + 0x8c]
push eax
call fcn.0040ba9a
add esp, 4
mov al, 1
jmp 0x408fb2
lea edi, [esp + 0x8c]
mov dword [esp + 0x14], edi
jmp 0x408647
lea esi, [esp + 0x8c]
jmp 0x4086f9
lea eax, [esp + 0x8c]
mov dword [esp + 0x14], eax
mov esi, eax
jmp 0x40876e
lea esi, [esp + 0x8c]
jmp 0x408820
mov ebx, dword [ebx]
jmp 0x408953
mov dword [esp + 0xd8], 0xf
mov dword [esp + 0xd4], 0
mov byte [esp + 0xc4], 0
mov ecx, dword [esp + 0x24]
mov bl, 5
mov byte [esp + 0xaec], bl
mov eax, dword [ecx + 0x6a]
mov ecx, dword [ecx + 0x6e]
mov edx, eax
or edx, ecx
mov edx, dword [ebp]
push 0
jne 0x408abc
mov ecx, dword [ebp + 0x10c]
mov eax, dword [ebp + 0x108]
push ecx
push eax
push edx
call fcn.0040c7c8
add esp, 0x10
test eax, eax
je 0x408b23
push 0x422720
lea ecx, [esp + 0xa8]
call fcn.00403b60
lea ecx, [ebp + 0x1164]
lea eax, [esp + 0xa4]
mov byte [esp + 0xaec], 6
call fcn.00407350
lea ecx, [esp + 0xa4]
mov byte [esp + 0xaec], bl
call fcn.00403bd0
lea eax, [ebp + 0x1158]
test eax, eax
je 0x408ab0
lea eax, [ebp + 0x1160]
push str.Invalid_seek_index.
jmp 0x408f86
xor eax, eax
push str.Invalid_seek_index.
jmp 0x408f86
push ecx
push eax
push edx
call fcn.0040c7c8
add esp, 0x10
test eax, eax
je 0x408b23
push 0x422720
lea ecx, [esp + 0xa8]
call fcn.00403b60
lea ecx, [ebp + 0x1164]
lea eax, [esp + 0xa4]
mov byte [esp + 0xaec], 7
call fcn.00407350
lea ecx, [esp + 0xa4]
mov byte [esp + 0xaec], bl
call fcn.00403bd0
lea ecx, [ebp + 0x1158]
test ecx, ecx
je 0x408ab0
lea eax, [ebp + 0x1160]
push str.Invalid_seek_index.
jmp 0x408f86
cmp dword [esp + 0x40], 0
je 0x408f37
lea eax, [esp + 0x28]
call fcn.004071f0
push eax
lea ecx, [esp + 0xa8]
call fcn.00403ba0
mov bl, 8
mov byte [esp + 0xaec], bl
mov edx, dword [esp + 0x3c]
mov eax, dword [edx]
mov ecx, dword [esp + 0x28]
push eax
push ecx
lea eax, [esp + 0x78]
push eax
lea edi, [esp + 0x34]
call fcn.00404f70
mov esi, dword [esp + 0x18]
mov ecx, dword [esi]
push ecx
push 0xa00
lea edx, [esp + 0xe4]
push 1
push edx
call fcn.0040c332
add esp, 0x10
cmp eax, 0xa00
jne 0x408d42
mov dword [esp + 0x14], 0
lea ebp, [esp + 0xdc]
mov esi, dword [esp + 0x18]
cmp byte [esi + 0x26], 0
je 0x408bb8
push ebp
lea eax, [esi + 0x110]
push eax
mov eax, ebp
call fcn.00407080
cmp byte [ebp + 0x7e], 0
jne 0x408e67
cmp byte [ebp + 0x7f], 0
jne 0x408e67
cmp byte [ebp], 0
je 0x408c49
lea ecx, [ebp + 1]
push ecx
lea ecx, [esp + 0xc4]
call fcn.00404bb0
lea ebx, [esp + 0x68]
lea edi, [esp + 0xc0]
call fcn.00407150
lea ebx, [esp + 0x78]
mov esi, eax
call fcn.004071a0
lea ebx, [esp + 0x60]
mov dword [esp + 0x1c], eax
call fcn.00407150
mov edx, dword [esi + 4]
mov ecx, dword [esi]
push edx
push ecx
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx + 4]
mov ecx, dword [ecx]
push edx
mov edx, dword [eax + 4]
mov eax, dword [eax]
push ecx
push edx
push eax
push fcn.0040c066
lea esi, [esp + 0x9c]
call fcn.004073c0
add esp, 0x1c
lea eax, [esp + 0xa4]
mov edx, edi
call fcn.00407400
test al, al
jne 0x408cc2
mov eax, dword [esp + 0x14]
inc eax
sub ebp, 0xffffff80
cmp eax, 0x14
mov dword [esp + 0x14], eax
jl 0x408b9f
mov eax, dword [esp + 0xad2]
mov ecx, dword [esp + 0xad6]
mov edx, eax
or edx, ecx
je 0x408f1f
mov esi, dword [esp + 0x18]
mov edx, dword [esi]
push ecx
push eax
call fcn.0040a830
add esp, 8
test eax, eax
jne 0x408ec3
lea ecx, [esp + 0xa4]
lea ebx, [esp + 0x28]
call fcn.00407220
lea ecx, [esp + 0xa4]
mov byte [esp + 0xaec], 5
call fcn.00403bd0
cmp dword [esp + 0x40], 0
jne 0x408b2e
jmp 0x408f33
cmp dword [esp + 0x40], 0
je 0x408daa
cmp byte [ebp], 1
jne 0x408e07
mov ecx, dword [ebp + 0x6e]
mov edx, dword [ebp + 0x6a]
mov esi, dword [esp + 0x18]
push ecx
push edx
mov edx, dword [esi]
call fcn.0040a830
add esp, 8
test eax, eax
je 0x408c9e
push 0x422720
lea ecx, [esp + 0x48]
call fcn.00403b60
lea ecx, [esi + 0x1164]
lea eax, [esp + 0x44]
mov byte [esp + 0xaec], 0xb
call fcn.00407350
lea ecx, [esp + 0x44]
mov byte [esp + 0xaec], 8
call fcn.00403bd0
lea edx, [esi + 0x1158]
test edx, edx
je 0x408dfe
lea eax, [esi + 0x1160]
push str.Invalid_seek_index.
jmp 0x408d90
push 0x422720
lea ecx, [esp + 0x48]
call fcn.00403b60
lea ecx, [esi + 0x1164]
lea eax, [esp + 0x44]
mov byte [esp + 0xaec], 9
call fcn.00407350
lea ecx, [esp + 0x44]
mov byte [esp + 0xaec], bl
call fcn.00403bd0
lea eax, [esi + 0x1158]
test eax, eax
je 0x408d89
lea eax, [esi + 0x1160]
jmp 0x408d8b
xor eax, eax
push str.Could_not_read_a_PK2EntryBlock_object
push eax
call fcn.00405fe0
add esp, 8
lea ecx, [esp + 0xa4]
call fcn.00403bd0
jmp 0x408f8f
mov edi, dword [esp + 0x24]
mov edx, dword [esp + 0x18]
mov ecx, 0x20
mov esi, ebp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x88]
push ecx
mov eax, ebp
call fcn.00407700
lea ecx, [esp + 0xa4]
call fcn.00403bd0
lea ecx, [esp + 0xc0]
call fcn.00403bd0
lea esi, [esp + 0x28]
call fcn.00404660
lea ecx, [esp + 0x88]
call fcn.00403bd0
mov al, 1
jmp 0x408fb2
xor eax, eax
push str.Invalid_seek_index.
jmp 0x408d90
push 0x422720
lea ecx, [esp + 0x48]
call fcn.00403b60
mov esi, dword [esp + 0x18]
lea ecx, [esi + 0x1164]
lea eax, [esp + 0x44]
mov byte [esp + 0xaec], 0xc
call fcn.00407350
lea ecx, [esp + 0x44]
mov byte [esp + 0xaec], 8
call fcn.00403bd0
lea eax, [esi + 0x1158]
test eax, eax
je 0x408e5b
lea eax, [esi + 0x1160]
push str.Invalid_entry__files_cannot_have_children_
jmp 0x408d90
xor eax, eax
push str.Invalid_entry__files_cannot_have_children_
jmp 0x408d90
push 0x422720
lea ecx, [esp + 0x48]
call fcn.00403b60
lea ecx, [esi + 0x1164]
lea eax, [esp + 0x44]
mov byte [esp + 0xaec], 0xa
call fcn.00407350
lea ecx, [esp + 0x44]
mov byte [esp + 0xaec], 8
call fcn.00403bd0
lea ecx, [esi + 0x1158]
test ecx, ecx
je 0x408eb7
lea eax, [esi + 0x1160]
push str.The_padding_is_not_NULL._User_seek_error.
jmp 0x408d90
xor eax, eax
push str.The_padding_is_not_NULL._User_seek_error.
jmp 0x408d90
push 0x422720
lea ecx, [esp + 0x48]
call fcn.00403b60
lea ecx, [esi + 0x1164]
lea eax, [esp + 0x44]
mov byte [esp + 0xaec], 0xd
call fcn.00407350
lea ecx, [esp + 0x44]
mov byte [esp + 0xaec], 8
call fcn.00403bd0
lea edx, [esi + 0x1158]
test edx, edx
je 0x408f13
lea eax, [esi + 0x1160]
push str.Invalid_seek_index_for_nextChain.
jmp 0x408d90
xor eax, eax
push str.Invalid_seek_index_for_nextChain.
jmp 0x408d90
lea ecx, [esp + 0xa4]
mov byte [esp + 0xaec], 5
call fcn.00403bd0
mov ebp, dword [esp + 0x18]
push 0x422720
lea ecx, [esp + 0x48]
call fcn.00403b60
lea ecx, [ebp + 0x1164]
lea eax, [esp + 0x44]
mov byte [esp + 0xaec], 0xe
call fcn.00407350
lea ecx, [esp + 0x44]
mov byte [esp + 0xaec], 5
call fcn.00403bd0
lea eax, [ebp + 0x1158]
test eax, eax
je 0x408f7f
lea eax, [ebp + 0x1160]
jmp 0x408f81
xor eax, eax
push str.The_entry_does_not_exist
push eax
call fcn.00405fe0
add esp, 8
lea ecx, [esp + 0xc0]
call fcn.00403bd0
lea esi, [esp + 0x28]
call fcn.00404660
lea ecx, [esp + 0x88]
call fcn.00403bd0
xor al, al
mov ecx, dword [esp + 0xae4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xac8]
xor ecx, esp
call fcn.0040b112
add esp, 0xadc
ret 4