Function at 0x427b40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x51d6d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.00454530
lea eax, [esi + 0x148]
lea ecx, [esi + 0xe0]
push eax
call fcn.004023f0
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x140]
push eax
lea ecx, [esp + 0x14]
push 0x535568
push ecx
mov dword [esp + 0x30], 0
call fcn.004024a0
mov edx, dword [esp + 0x1c]
mov ebp, dword [sym.imp.rgss102j.dll_RGSSGetInt]
push edx
call ebp
mov ebx, dword [sym.imp.user32.dll_SendMessageA]
add esp, 0x10
dec eax
mov ecx, eax
shl ecx, 5
push ecx
push eax
mov dword [esi + 0x150], eax
mov eax, dword [esi + 0x100]
push 0x1a8
push eax
call ebx
mov eax, dword [esi + 0x150]
mov edi, 1
cmp eax, edi
jl 0x427cc2
jmp 0x427bf0
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x24], 1
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [esi + 0x140]
push edi
push eax
lea ecx, [esp + 0x1c]
push 0x535540
push ecx
mov byte [esp + 0x34], 2
call fcn.004024a0
mov edx, dword [esp + 0x24]
push edx
call dword [sym.imp.rgss102j.dll_RGSSGetStringACP]
push eax
push edi
lea eax, [esp + 0x34]
push 0x52e53c
push eax
call fcn.004024a0
mov ebp, dword [esp + 0x3c]
mov ecx, dword [esi + 0x100]
add esp, 0x24
push ebp
push 0
push 0x180
push ecx
call ebx
lea eax, [ebp - 0x10]
mov byte [esp + 0x24], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x427c8a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x24], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x427cad
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esi + 0x150]
inc edi
cmp edi, eax
jle 0x427bf0
mov ebp, dword [sym.imp.rgss102j.dll_RGSSGetInt]
push 0x356
lea ecx, [esi + 0xe4]
call fcn.004741f0
mov eax, dword [esi + 0x140]
push eax
lea ecx, [esp + 0x14]
push 0x535558
push ecx
call fcn.004024a0
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov ecx, dword [esi + 0x150]
add esp, 0x10
dec ecx
cmp eax, ecx
mov dword [esp + 0x18], eax
jl 0x427d05
mov dword [esp + 0x18], ecx
mov eax, dword [esi + 0x140]
push eax
lea ecx, [esp + 0x14]
push 0x53554c
push ecx
call fcn.004024a0
mov edx, dword [esp + 0x1c]
push edx
call ebp
mov edi, eax
mov eax, dword [esi + 0x150]
add esp, 0x10
dec eax
cmp edi, eax
jl 0x427d34
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [esi + 0x100]
push 0
push eax
push 0x197
push ecx
call ebx
mov edx, dword [esi + 0x100]
push 0
push edi
push 0x186
push edx
call ebx
mov ecx, esi
call fcn.00427650
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x427d8b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x18
ret