Function at 0x4252d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bb7f8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
push ebx
push esi
push edi
mov eax, dword [0x4e88d0]
xor eax, esp
push eax
lea eax, [esp + 0x48]
mov dword fs:[0], eax
call fcn.0047b116
xor ecx, ecx
xor edi, edi
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x425318
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 + 0x10], eax
mov dword [esp + 0x50], edi
call fcn.0047b116
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
jne 0x425346
push 0x80004005
call fcn.00402120
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [esp + 0x18], ebx
mov esi, dword [ebp + 0xc]
mov byte [esp + 0x50], 1
call fcn.00407fb0
mov dword [esp + 0x30], edi
mov ecx, dword [ebp + 8]
push 0x4c99e0
push ecx
mov byte [esp + 0x58], 2
call fcn.0049200c
mov edi, eax
add esp, 8
test edi, edi
je 0x4253a8
push edi
call fcn.00492e23
add esp, 4
push eax
call fcn.00492e55
mov esi, eax
add esp, 4
test esi, esi
jne 0x425426
push edi
call fcn.0049209a
add esp, 4
mov eax, dword [ebp + 8]
push eax
lea ecx, [esp + 0x14]
push str.Can_not_open_file:__s
push ecx
call fcn.004021f0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push esi
call fcn.0047ad92
lea eax, [ebx - 0x10]
mov byte [esp + 0x50], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4253ed
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x50], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425411
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esi + 2]
push eax
call fcn.004926c3
add esp, 4
mov dword [esp + 0x24], eax
push edi
test eax, eax
je 0x4253a0
push 1
push esi
push eax
call fcn.00492e06
mov eax, dword [esp + 0x34]
xor edx, edx
push edi
mov word [eax + esi], dx
mov dword [esp + 0x44], eax
call fcn.0049209a
mov edi, dword [esp + 0x38]
add esp, 0x14
cmp esi, 4
jbe 0x425500
cmp dword [edi], 0x414d53
jne 0x425500
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, esi
mov ebx, edi
call fcn.004221f0
add esp, 4
test eax, eax
jne 0x4254d7
mov edx, dword [ebp + 8]
push edx
lea eax, [esp + 0x14]
push str.Invalid_Action_Script_File_Format:__s
push eax
call fcn.004021f0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push esi
call fcn.0047ad92
push edi
call fcn.004925e6
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4253e1
lea esi, [esp + 0x30]
cmp eax, 1
jne 0x42588e
call fcn.004312a0
lea ecx, [esp + 0x18]
call fcn.00401fa0
lea ecx, [esp + 0x10]
call fcn.00401fa0
jmp 0x42597a
cmp byte [edi], 0x23
je 0x42554c
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x14]
push str.Invalid_Action_Script_File_Format:__s
push edx
call fcn.004021f0
mov esi, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0
push esi
call fcn.0047ad92
push edi
call fcn.004925e6
lea eax, [ebx - 0x10]
add esp, 4
mov byte [esp + 0x50], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x4253e1
mov esi, dword [ebp + 8]
push 0x2e
push esi
call fcn.00492b3a
xor ebx, ebx
add esp, 8
cmp eax, ebx
je 0x4255ae
push str..amc
push eax
call fcn.00494aba
add esp, 8
test eax, eax
jne 0x4255ae
mov ecx, dword [ebp + 0xc]
push ecx
push esi
call fcn.00424b50
push edi
mov esi, eax
call fcn.004925e6
add esp, 0xc
lea ecx, [esp + 0x18]
call fcn.00401fa0
lea ecx, [esp + 0x10]
call fcn.00401fa0
mov eax, esi
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x20]
push edx
mov ecx, edi
call fcn.0042a4a0
push 0x4c810c
lea eax, [esp + 0x18]
mov byte [esp + 0x54], 3
push eax
lea ecx, [esp + 0x28]
push ecx
lea eax, [esp + 0x34]
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x34], ebx
call fcn.0042a5f0
mov byte [esp + 0x50], 4
cmp dword [esp + 0x28], 0xffffffff
je 0x42579b
lea edi, [esp + 0x14]
call fcn.0042a780
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], ebx
jl 0x4257da
cmp byte [eax], 0x23
jne 0x42562c
add eax, 0xfffffff0
mov byte [esp + 0x50], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x425760
push 0x4c8114
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x44]
mov dword [esp + 0x44], ebx
call fcn.0042a5f0
mov byte [esp + 0x50], 5
mov ecx, dword [esp + 0x38]
cmp ecx, 0xffffffff
je 0x425804
lea eax, [esp + 0x2c]
lea edx, [esp + 0x14]
call fcn.0042a820
lea edi, [esp + 0x2c]
mov byte [esp + 0x50], 6
call fcn.0042a780
lea edi, [esp + 0x1c]
call fcn.0042a720
mov eax, dword [esp + 0x1c]
push str.version
push eax
call fcn.00493aba
mov esi, dword [esp + 0x34]
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x4256b2
lea ecx, [esp + 0x3c]
push ecx
push 0x4c782c
push esi
call fcn.00492b18
add esp, 0xc
jmp 0x425701
mov edx, dword [esp + 0x1c]
push str.textlen
push edx
call fcn.00493aba
add esp, 8
cmp eax, ebx
sete al
test al, al
je 0x4256e2
lea eax, [esp + 0x40]
push eax
push 0x4c82f8
push esi
call fcn.00492b18
add esp, 0xc
jmp 0x425701
mov ecx, dword [esp + 0x1c]
push str.itemcount
push ecx
call fcn.00493aba
add esp, 8
cmp eax, ebx
sete al
test al, al
jne 0x4257e4
lea eax, [esi - 0x10]
mov byte [esp + 0x50], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x425722
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 4
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 0x425747
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x50], 3
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42576c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x4c810c
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x28]
push edx
lea eax, [esp + 0x34]
call fcn.0042a5f0
mov byte [esp + 0x50], 4
cmp dword [esp + 0x28], 0xffffffff
jne 0x4255f7
mov edi, dword [esp + 0x24]
mov esi, dword [ebp + 8]
push esi
lea eax, [esp + 0x14]
push str.Invalid_Action_Script_File_Format:__s
push eax
call fcn.004021f0
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push ecx
call fcn.0047ad92
lea ecx, [esp + 0x14]
call fcn.00401fa0
lea ecx, [esp + 0x20]
call fcn.00401fa0
push edi
call fcn.004925e6
add esp, 4
jmp 0x425893
push 0x80070057
call fcn.00402120
mov eax, dword [esp + 0x2c]
lea edx, [esp + 0x34]
push edx
push 0x4c782c
push eax
call fcn.00492b18
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00401fa0
lea ecx, [esp + 0x1c]
call fcn.00401fa0
lea ecx, [esp + 0x14]
mov byte [esp + 0x50], 3
call fcn.00401fa0
mov eax, dword [esp + 0x3c]
mov dword [0x4f4160], eax
cmp eax, ebx
jne 0x425862
mov ecx, dword [ebp + 8]
push ecx
lea edx, [esp + 0x14]
push str.Invalid_Action_Script_File_Format:__s
push edx
call fcn.004021f0
mov eax, dword [esp + 0x1c]
add esp, 0xc
push ebx
push ebx
push eax
call fcn.0047ad92
lea ecx, [esp + 0x20]
call fcn.00401fa0
mov ecx, dword [esp + 0x24]
push ecx
call fcn.004925e6
add esp, 4
jmp 0x425893
cmp eax, 0x52
jbe 0x4258ba
push str.Can_not_load_this_version_of_Action_Script_File._r_nYou_may_need_to_update_Automatic_Mouse_and_Keyboard_to_the_latest_version.
lea ecx, [esp + 0x14]
call fcn.00402b70
mov edx, dword [esp + 0x10]
push ebx
push ebx
push edx
call fcn.0047ad92
lea ecx, [esp + 0x20]
call fcn.00401fa0
lea esi, [esp + 0x30]
call fcn.004312a0
lea ecx, [esp + 0x18]
call fcn.00401fa0
lea ecx, [esp + 0x10]
call fcn.00401fa0
xor eax, eax
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 0x40]
mov edi, dword [esp + 0x24]
lea esi, [edi + eax]
mov eax, dword [esp + 0x34]
cmp eax, ebx
jbe 0x4258ff
mov dword [esp + 0x2c], ebx
mov ecx, dword [ebp + 0xc]
push ecx
push eax
lea edx, [esp + 0x34]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push ecx
push esi
call fcn.00423bd0
mov ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x4c]
inc ecx
add esp, 0x18
mov dword [esp + 0x2c], ecx
cmp ecx, eax
jb 0x4258d1
mov byte [esp + 0x50], 2
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x425924
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push edi
call fcn.004925e6
mov byte [esp + 0x54], 0
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x425952
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x50], 0xffffffff
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42597a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x48]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret