Function at 0x424b50
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4b9e23
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
call fcn.0047b116
xor ecx, ecx
xor ebp, ebp
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x424b93
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
mov dword [esp + 0x58], ebp
call fcn.0047b116
xor ecx, ecx
cmp eax, ebp
setne cl
cmp ecx, ebp
jne 0x424bc1
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x30], eax
mov dword [esp + 0x48], ebp
mov ecx, dword [esp + 0x60]
push 0x4c99e0
push ecx
mov byte [esp + 0x60], 2
call fcn.0049200c
mov esi, eax
add esp, 8
cmp esi, ebp
je 0x424c17
push esi
call fcn.00492e23
add esp, 4
push eax
call fcn.00492e55
mov edi, eax
add esp, 4
cmp edi, ebp
jne 0x424c99
push esi
call fcn.0049209a
add esp, 4
mov edx, dword [esp + 0x60]
push edx
lea eax, [esp + 0x20]
push str.Can_not_open_file:__s
push eax
call fcn.004021f0
mov esi, dword [esp + 0x28]
add esp, 0xc
push ebp
push ebp
push esi
call fcn.0047ad92
mov byte [esp + 0x58], 0
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424c5f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x58], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424c83
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret
push edi
call fcn.004926c3
mov ebx, eax
add esp, 4
mov dword [esp + 0x2c], ebx
push esi
cmp ebx, ebp
je 0x424c0f
push 1
push edi
push ebx
call fcn.00492e06
push esi
mov dword [esp + 0x5c], ebx
call fcn.0049209a
add esp, 0x14
lea ecx, [esp + 0x20]
push ecx
mov ecx, ebx
call fcn.0042a4a0
push 0x4c810c
mov byte [esp + 0x5c], 3
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x58], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x50], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x34], ebp
call fcn.0042a5f0
or ebx, 0xffffffff
mov byte [esp + 0x58], 4
cmp dword [esp + 0x28], ebx
je 0x424f5b
lea ebx, [ebx]
lea edi, [esp + 0x18]
call fcn.0042a780
mov eax, dword [esp + 0x18]
cmp dword [eax - 0xc], ebp
jl 0x42500d
cmp byte [eax], 0x23
jne 0x424d45
mov byte [esp + 0x58], 3
jmp 0x424f19
push 0x4c8114
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x48]
mov dword [esp + 0x48], ebp
call fcn.0042a5f0
mov byte [esp + 0x58], 5
mov ecx, dword [esp + 0x3c]
cmp ecx, ebx
je 0x42504e
lea eax, [esp + 0x34]
lea edx, [esp + 0x18]
call fcn.0042a820
lea edi, [esp + 0x34]
mov byte [esp + 0x58], 6
call fcn.0042a780
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0xc]
mov eax, dword [edx - 8]
mov ecx, 1
sub ecx, dword [edx - 4]
sub eax, esi
or eax, ecx
jge 0x424db3
push esi
lea ecx, [esp + 0x18]
call fcn.00404f50
mov edx, dword [esp + 0x14]
lea eax, [esi + 1]
push eax
push edx
call fcn.0049397c
push eax
call fcn.00405340
add esp, 0xc
cmp esi, ebp
jl 0x42500d
mov eax, dword [esp + 0x14]
cmp esi, dword [eax - 8]
jg 0x42500d
mov dword [eax - 0xc], esi
mov ecx, dword [esp + 0x14]
mov byte [esi + ecx], 0
mov edx, dword [esp + 0x14]
push str.version
push edx
call fcn.00493aba
mov esi, dword [esp + 0x3c]
add esp, 8
cmp eax, ebp
sete al
test al, al
je 0x424e1d
lea eax, [esp + 0x40]
push eax
push 0x4c782c
push esi
call fcn.00492b18
add esp, 0xc
jmp 0x424ecc
mov ecx, dword [esp + 0x14]
push str.textlen
push ecx
call fcn.00493aba
add esp, 8
cmp eax, ebp
sete al
test al, al
je 0x424e4d
lea edx, [esp + 0x4c]
push edx
push 0x4c82f8
push esi
call fcn.00492b18
add esp, 0xc
jmp 0x424ecc
mov eax, dword [esp + 0x14]
push str.numpic
push eax
call fcn.00493aba
add esp, 8
cmp eax, ebp
sete al
test al, al
je 0x424e7d
lea ecx, [esp + 0x24]
push ecx
push 0x4c82f8
push esi
call fcn.00492b18
add esp, 0xc
jmp 0x424ecc
mov edx, dword [esp + 0x14]
push str.picofs
push edx
call fcn.00493aba
add esp, 8
cmp eax, ebp
sete al
test al, al
je 0x424ead
lea eax, [esp + 0x44]
push eax
push 0x4c82f8
push esi
call fcn.00492b18
add esp, 0xc
jmp 0x424ecc
mov ecx, dword [esp + 0x14]
push str.itemcount
push ecx
call fcn.00493aba
add esp, 8
cmp eax, ebp
sete al
test al, al
jne 0x425017
lea eax, [esi - 0x10]
mov byte [esp + 0x58], 5
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424eec
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
mov edx, ebx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424f10
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424f34
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c810c
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
call fcn.0042a5f0
mov byte [esp + 0x58], 4
cmp dword [esp + 0x28], ebx
jne 0x424d20
mov eax, dword [esp + 0x60]
push eax
lea ecx, [esp + 0x20]
push str.Invalid_Action_Script_File_Format:__s
push ecx
call fcn.004021f0
mov esi, dword [esp + 0x28]
add esp, 0xc
push ebp
push ebp
push esi
call fcn.0047ad92
mov byte [esp + 0x58], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424fa2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x424fc6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004925e6
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x424ff7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x58], ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jmp 0x424c77
push 0x80070057
call fcn.00402120
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x38]
push ecx
push 0x4c782c
push esi
call fcn.00492b18
lea eax, [esi - 0x10]
add esp, 0xc
mov byte [esp + 0x58], 5
lea edx, [eax + 0xc]
mov ecx, ebx
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42504e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 4
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425072
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x58], 3
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov edx, ebx
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425096
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x40], ebp
jne 0x4250c4
mov ecx, dword [esp + 0x60]
push ecx
lea edx, [esp + 0x20]
push str.Invalid_Action_Script_File_Format:__s
push edx
call fcn.004021f0
mov esi, dword [esp + 0x28]
add esp, 0xc
push ebp
push ebp
push esi
call fcn.0047ad92
jmp 0x424fa2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x18], ebp
cmp eax, ebp
jbe 0x425163
mov ecx, dword [esp + 0x44]
mov edx, dword [esp + 0x2c]
lea esi, [edx + ecx]
mov edi, eax
xor ecx, ecx
mov edx, 8
mul edx
seto cl
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00472669
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0x58], 7
test eax, eax
je 0x42512d
push 0x4312c0
push 0x4312d0
push edi
lea ebx, [eax + 4]
push 8
push ebx
mov dword [eax], edi
call fcn.004922c9
jmp 0x42512f
xor ebx, ebx
mov byte [esp + 0x58], 3
mov eax, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x18], ebx
test eax, eax
jbe 0x425163
mov edi, dword [esi]
lea eax, [esi + 4]
push edi
push eax
mov ecx, ebx
call fcn.004192d0
mov eax, dword [esp + 0x2c]
inc ebp
add esp, 8
add ebx, 8
lea esi, [esi + edi + 4]
cmp ebp, eax
jb 0x425142
mov ecx, dword [esp + 0x38]
test ecx, ecx
jbe 0x4251b0
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x64]
mov dword [esp + 0x34], 0
jmp 0x425184
mov eax, dword [esp + 0x24]
push edi
push eax
push esi
push ecx
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.00422e30
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x54]
inc eax
add esp, 0x1c
mov dword [esp + 0x34], eax
cmp eax, ecx
jb 0x425180
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4251d5
cmp dword [ecx - 4], 0
lea eax, [ecx - 4]
je 0x4251cc
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push 3
call eax
jmp 0x4251d5
push eax
call fcn.00472674
add esp, 4
mov byte [esp + 0x58], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4251fa
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x2c]
push ecx
call fcn.004925e6
mov byte [esp + 0x5c], 0
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
add esp, 4
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x42522c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x58], 0xffffffff
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425254
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x48
ret