Function at 0x462ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5243ff
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
push esi
push edi
push 0x561c64
mov esi, ecx
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x88]
push 0x561c64
push eax
push ecx
push 1
mov ecx, esi
call fcn.00506c1f
push 0x540918
call dword [sym.imp.rgss102j.dll_RGSSGetStringACP]
add esp, 4
push eax
lea ecx, [esp + 0x50]
call fcn.00402700
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
xor ebp, ebp
push eax
mov dword [esp + 0xf0], ebp
call fcn.00401950
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x58]
push 0x54e2a4
push ecx
mov byte [esp + 0xfc], 1
call fcn.0040c200
add esp, 0x10
lea eax, [edi - 0x10]
mov byte [esp + 0xec], 3
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x462f8e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea ecx, [esp + 0xbc]
call fcn.004b7640
mov eax, dword [esp + 0x50]
push 1
push eax
mov byte [esp + 0xf4], 4
call dword [sym.imp.rgss102j.dll_RGSSGetPathWithRTP]
add esp, 4
push eax
lea ecx, [esp + 0xc4]
call fcn.004b7710
cmp dword [esp + 0xc0], ebp
je 0x462ffc
lea ecx, [esp + 0xbc]
push ecx
mov ecx, dword [esi + 0x9c]
call fcn.004b7010
test eax, eax
jne 0x462fee
mov ecx, dword [esi + 0x9c]
mov edx, dword [ecx]
push 1
push 1
call dword [edx + 4]
lea ecx, [esp + 0xbc]
call fcn.004b74e0
jmp 0x46300b
mov ecx, dword [esi + 0x9c]
mov eax, dword [ecx]
push 1
push 1
call dword [eax + 4]
mov ecx, dword [esi + 0x88]
mov edx, dword [esi + 0x8c]
mov ebx, dword [esi + 0x94]
mov eax, 0x80
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, 2
sub ecx, eax
sub edx, eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
lea eax, [esp + 0x84]
push eax
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0x50], edx
mov edx, dword [esi + 0x9c]
push edx
lea eax, [esp + 0x48]
push eax
mov ecx, ebx
mov dword [esp + 0x70], ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x94], 0x80002820
call fcn.004b6700
mov edi, dword [esp + 0x84]
push 0x10
push 0xb0
push ebp
and edi, 0xffffdfff
push 0x90
lea ecx, [esp + 0x28]
mov dword [esp + 0x94], edi
mov edi, dword [sym.imp.user32.dll_SetRect]
push ecx
call edi
mov edx, dword [esi + 0x88]
push 0x10
sub edx, 8
push edx
push ebp
push 8
lea eax, [esp + 0x4c]
push eax
call edi
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x84]
push ecx
push ebp
push ebp
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call fcn.004b70a0
push 0x40
push 0xb0
push 0x30
push 0x90
lea edx, [esp + 0x28]
push edx
call edi
mov eax, dword [esi + 0x8c]
mov ecx, dword [esi + 0x88]
push eax
sub ecx, 8
push ecx
add eax, 0xfffffff0
push eax
push 8
lea edx, [esp + 0x4c]
push edx
call edi
lea eax, [esp + 0x84]
push eax
push ebp
push ebp
mov edx, dword [esi + 0x9c]
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
call fcn.004b70a0
push 0x30
push 0x90
push 0x10
push 0x80
lea ecx, [esp + 0x28]
push ecx
call edi
mov edx, dword [esi + 0x8c]
sub edx, 8
push edx
push 0x10
push 8
push ebp
lea eax, [esp + 0x4c]
push eax
call edi
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x84]
push ecx
push ebp
push ebp
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x50]
push ecx
mov ecx, ebx
call fcn.004b70a0
push 0x30
push 0xc0
push 0x10
push 0xb0
lea edx, [esp + 0x28]
push edx
call edi
mov ecx, dword [esi + 0x8c]
mov eax, dword [esi + 0x88]
sub ecx, 8
push ecx
push eax
push 8
add eax, 0xfffffff0
push eax
lea edx, [esp + 0x4c]
push edx
call edi
mov edx, dword [esi + 0x9c]
lea eax, [esp + 0x84]
push eax
push ebp
push ebp
lea ecx, [esp + 0x24]
push ecx
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, ebx
call fcn.004b70a0
push 0x10
push 0x90
push ebp
push 0x80
lea ecx, [esp + 0x28]
push ecx
call edi
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x1c]
push eax
push ecx
push ebp
push ebp
mov ecx, ebx
call fcn.004b7380
push 0x10
push 0xc0
push ebp
push 0xb0
lea edx, [esp + 0x28]
push edx
call edi
mov edx, dword [esi + 0x9c]
lea eax, [esp + 0x84]
push eax
mov eax, dword [esi + 0x88]
lea ecx, [esp + 0x1c]
push ecx
push edx
push ebp
sub eax, 0x10
push eax
mov ecx, ebx
call fcn.004b7380
push 0x40
push 0x90
push 0x30
push 0x80
lea ecx, [esp + 0x28]
push ecx
call edi
mov ecx, dword [esi + 0x9c]
lea edx, [esp + 0x84]
push edx
mov edx, dword [esi + 0x8c]
lea eax, [esp + 0x1c]
push eax
push ecx
sub edx, 0x10
push edx
push ebp
mov ecx, ebx
call fcn.004b7380
push 0x40
push 0xc0
push 0x30
push 0xb0
lea eax, [esp + 0x28]
push eax
call edi
mov eax, dword [esi + 0x9c]
lea ecx, [esp + 0x84]
push ecx
mov ecx, dword [esi + 0x8c]
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x88]
push eax
sub ecx, 0x10
push ecx
sub edx, 0x10
push edx
mov ecx, ebx
call fcn.004b7380
push 0x54e288
mov dword [esp + 0x68], 0xffffffff
mov dword [esp + 0x6c], 0xff8080ff
mov dword [esp + 0x70], 0xffff8080
mov dword [esp + 0x74], 0xff80ff80
mov dword [esp + 0x78], 0xff80ffff
mov dword [esp + 0x7c], 0xffff80ff
mov dword [esp + 0x80], 0xffffff80
mov dword [esp + 0x84], 0xffc0c0c0
mov dword [esp + 0x88], 0x80000800
call dword [sym.imp.rgss102j.dll_RGSSGetInt]
add esp, 4
cmp eax, ebp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x30], ebp
jle 0x463588
mov dword [esp + 0x10], ebp
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x30]
push eax
lea ecx, [esp + 0x2c]
push 0x54e26c
push ecx
mov byte [esp + 0xf8], 5
call fcn.004024a0
mov edx, dword [esp + 0x34]
push edx
call dword [sym.imp.rgss102j.dll_RGSSGetStringACP]
add esp, 0x10
push eax
lea ecx, [esp + 0x38]
call fcn.00402700
mov eax, dword [esp + 0x34]
mov edi, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
push ebp
push ebp
push 0xffffffffffffffff
push eax
push ebp
push ebp
mov byte [esp + 0x104], 6
call edi
mov ebp, eax
lea ecx, [ebp + ebp]
push ecx
call fcn.004fb3e1
mov edx, dword [esp + 0x38]
add esp, 4
push ebp
mov ebx, eax
push ebx
push 0xffffffffffffffff
push edx
push 0
push 0
call edi
xor ecx, ecx
xor edi, edi
test ebp, ebp
mov dword [esp + 0x38], ecx
jle 0x46350d
lea ebx, [ebx]
mov ax, word [ebx + ecx*2]
cmp ax, 1
mov word [esp + 0x16], 0
mov word [esp + 0x14], ax
jne 0x463470
lea edx, [ecx + 3]
cmp edx, ebp
jge 0x4634fc
cmp word [ebx + ecx*2 + 2], 0x5b
jne 0x4634fc
mov ax, word [ebx + ecx*2 + 4]
cmp ax, 0x30
jb 0x4634fc
cmp ax, 0x39
ja 0x4634fc
movzx eax, ax
sub eax, 0x30
mov cx, word [ebx + edx*2]
cmp cx, 0x5d
je 0x463452
cmp cx, 0x30
jb 0x4634fc
cmp cx, 0x39
ja 0x4634fc
movzx ecx, cx
inc edx
cmp edx, ebp
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x30]
jl 0x463420
jmp 0x4634fc
test eax, eax
mov dword [esp + 0x2c], eax
jl 0x46345f
cmp eax, 7
jle 0x463467
mov dword [esp + 0x2c], 0
mov dword [esp + 0x38], edx
jmp 0x4634fc
cmp ax, 0x3000
jne 0x463496
mov ecx, dword [esi + 0x98]
push 1
lea edx, [esp + 0x58]
push edx
lea eax, [esp + 0x1c]
push eax
mov word [esp + 0x20], 0x300c
call fcn.00497560
jmp 0x4634f8
cmp ax, 2
je 0x4634fc
push 1
lea ecx, [esp + 0x58]
push ecx
mov ecx, dword [esi + 0x98]
lea edx, [esp + 0x1c]
push edx
call fcn.00497560
mov edx, dword [esp + 0x58]
mov eax, 0x20
sub eax, edx
cdq
sub eax, edx
mov edx, dword [esp + 0x2c]
xor ecx, ecx
sar eax, 1
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, dword [esp + edx*4 + 0x64]
push ecx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
mov edx, 0x20
sub edx, eax
push edx
push 0x20
add eax, ecx
mov ecx, dword [esi + 0x98]
push eax
push edi
call fcn.00497740
add edi, dword [esp + 0x54]
mov ecx, dword [esp + 0x38]
inc ecx
cmp ecx, ebp
mov dword [esp + 0x38], ecx
jl 0x4633d0
push ebx
call fcn.004fb3dc
mov eax, dword [esp + 0x38]
add eax, 0xfffffff0
add esp, 4
mov byte [esp + 0xec], 5
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x46353c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
mov byte [esp + 0xec], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463562
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c]
inc eax
add edx, 0x20
xor ebp, ebp
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x10], edx
jl 0x463338
mov ebx, dword [esp + 0x60]
mov ecx, dword [esi + 0x98]
lea eax, [esp + 0x84]
push eax
push ebp
push ecx
push 0x10
push 0x10
mov ecx, ebx
call fcn.004b7380
lea ecx, [esp + 0xbc]
mov byte [esp + 0xec], 3
call fcn.004b7660
mov eax, dword [esp + 0x50]
add eax, 0xfffffff0
mov byte [esp + 0xec], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4635dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x4c]
add eax, 0xfffffff0
mov dword [esp + 0xec], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x463606
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0xe4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret