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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x526361
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x150]
test eax, eax
je 0x47f01e
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [edi + 0x150]
push eax
lea ecx, [esp + 0x20]
push 0x5585a8
push ecx
mov dword [esp + 0x98], 0
call fcn.004024a0
mov edx, dword [esp + 0x28]
push edx
call dword [sym.imp.rgss102j.dll_RGSSGetInt]
push eax
mov dword [edi + 0x154], eax
lea eax, [esp + 0x30]
push 0x558700
push eax
call fcn.004024a0
mov ecx, dword [esp + 0x38]
push ecx
call dword [sym.imp.rgss102j.dll_RGSSEval]
lea edx, [esp + 0x48]
push 0x537a20
push edx
call dword [sym.imp.rgss102j.dll_RGSSGetTable]
mov esi, dword [eax + 8]
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [eax + 0xc]
lea ebx, [edi + 0x17c]
mov dword [ebx], ecx
mov dword [ebx + 4], edx
mov dword [ebx + 8], esi
add esp, 0x28
mov dword [ebx + 0xc], eax
xor esi, esi
test esi, esi
jne 0x47ebcb
lea eax, [esp + 0x1c]
push 0x537da4
push eax
call fcn.004024a0
add esp, 8
jmp 0x47ebe1
lea ecx, [esi - 1]
push ecx
lea edx, [esp + 0x20]
push 0x5586e8
push edx
call fcn.004024a0
add esp, 0xc
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
test esi, esi
mov byte [esp + 0x8c], 1
lea ecx, [esp + 0x18]
jne 0x47ec0d
push 0x12
push 0x530d3c
jmp 0x47ec14
push 0x13
push 0x530d50
call fcn.00401ff0
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.rgss102j.dll_RGSSGetStringACP]
add esp, 4
test eax, eax
jne 0x47ec2f
xor ecx, ecx
jmp 0x47ec3d
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x47ec34
sub ecx, ebx
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004022f0
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.rgss102j.dll_RGSSGetPathWithRTP]
add esp, 4
test eax, eax
jne 0x47ec5e
xor ecx, ecx
jmp 0x47ec6c
mov ecx, eax
lea ebx, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x47ec63
sub ecx, ebx
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.00401ff0
mov ebp, dword [esp + 0x18]
lea edx, [esp + 0x5c]
push edx
push ebp
call fcn.004a49fe
mov eax, dword [edi + esi*4 + 0xf0]
lea ebx, [edi + esi*4 + 0xf0]
push ebp
push eax
call fcn.004a1b19
add esp, 0x10
test eax, eax
jne 0x47ecb3
mov eax, dword [edi + esi*4 + 0x110]
cmp eax, dword [esp + 0x78]
je 0x47ef11
call fcn.005157bf
mov ecx, dword [eax + 4]
call fcn.004fc07b
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
mov byte [esp + 0x90], 2
call fcn.004023f0
mov ecx, dword [esp + 0x78]
mov dword [edi + esi*4 + 0x110], ecx
mov ecx, dword [edi + esi*4 + 0x8c]
test ecx, ecx
je 0x47ecf0
mov edx, dword [ecx]
push 1
call dword [edx]
mov ecx, dword [edi + esi*4 + 0xac]
test ecx, ecx
je 0x47ed01
mov eax, dword [ecx]
push 1
call dword [eax]
mov ecx, dword [edi + esi*4 + 0xcc]
test ecx, ecx
je 0x47ed12
mov edx, dword [ecx]
push 1
call dword [edx]
push 0x58
call fcn.004fb3b1
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x8c], 3
je 0x47ed37
push 0x20
mov ecx, eax
call fcn.004b5ce0
jmp 0x47ed39
xor eax, eax
push 0x58
mov byte [esp + 0x90], 2
mov dword [edi + esi*4 + 0x8c], eax
call fcn.004fb3b1
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x8c], 4
je 0x47ed6d
push 0x20
mov ecx, eax
call fcn.004b5ce0
jmp 0x47ed6f
xor eax, eax
push 0x58
mov byte [esp + 0x90], 2
mov dword [edi + esi*4 + 0xac], eax
call fcn.004fb3b1
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
mov byte [esp + 0x8c], 5
je 0x47eda3
push 0x20
mov ecx, eax
call fcn.004b5ce0
jmp 0x47eda5
xor eax, eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c], 2
mov dword [edi + esi*4 + 0xcc], eax
call fcn.004b7640
push 1
push ebp
lea ecx, [esp + 0x40]
mov byte [esp + 0x94], 6
call fcn.004b7710
mov eax, dword [esp + 0x3c]
test eax, eax
mov ecx, dword [edi + esi*4 + 0x8c]
je 0x47eec2
lea eax, [esp + 0x38]
push eax
call fcn.004b7010
test eax, eax
jne 0x47ee02
mov ecx, dword [edi + esi*4 + 0x8c]
mov edx, dword [ecx]
push 1
push 1
call dword [edx + 4]
lea ecx, [esp + 0x38]
call fcn.004b74e0
mov eax, dword [edi + esi*4 + 0x8c]
mov ecx, dword [eax + 8]
mov ebx, dword [ecx + 4]
mov eax, ecx
mov eax, dword [eax + 8]
cdq
mov ebp, eax
xor ebp, edx
sub ebp, edx
cmp ebx, 4
jge 0x47ee2e
mov ebx, 4
cmp ebp, 4
jge 0x47ee38
mov ebp, 4
mov eax, dword [edi + esi*4 + 0xac]
mov eax, dword [eax]
mov ecx, dword [edi + esi*4 + 0xac]
mov dword [esp + 0x20], eax
mov eax, ebp
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
push eax
mov eax, dword [esp + 0x28]
call dword [eax + 4]
mov ecx, dword [edi + esi*4 + 0xcc]
mov eax, dword [ecx]
mov dword [esp + 0x20], eax
mov eax, ebp
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
mov eax, ebx
cdq
and edx, 3
add eax, edx
sar eax, 2
push eax
mov eax, dword [esp + 0x28]
call dword [eax + 4]
mov eax, dword [edi + esi*4 + 0x8c]
mov ecx, dword [edi + esi*4 + 0xac]
push eax
push ecx
call fcn.00473680
mov edx, dword [edi + esi*4 + 0xac]
mov eax, dword [edi + esi*4 + 0xcc]
push edx
push eax
call fcn.00473680
mov ebp, dword [esp + 0x28]
add esp, 0x10
jmp 0x47eeeb
mov edx, dword [ecx]
push 1
push 1
call dword [edx + 4]
mov ecx, dword [edi + esi*4 + 0xac]
mov eax, dword [ecx]
push 1
push 1
call dword [eax + 4]
mov ecx, dword [edi + esi*4 + 0xcc]
mov edx, dword [ecx]
push 1
push 1
call dword [edx + 4]
lea ecx, [esp + 0x38]
mov byte [esp + 0x8c], 2
call fcn.004b7660
mov byte [esp + 0x8c], 1
call fcn.005157bf
mov ecx, dword [eax + 4]
call fcn.004fc090
lea eax, [ebp - 0x10]
mov byte [esp + 0x8c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47ef33
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
inc esi
cmp esi, 8
jl 0x47ebb3
mov dword [edi + 0x130], 0
mov dword [esp + 0x18], 1
lea ebp, [edi + 0x134]
xor edx, edx
mov dword [ebp], edx
mov esi, 1
lea ebx, [edi + 0x90]
cmp dword [esp + 0x18], esi
je 0x47efae
mov ecx, dword [ebx]
mov eax, 0x20
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [ebp - 0xa4]
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], edx
mov dword [esp + 0x30], edx
push ecx
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x40], 0x40
call fcn.004734e0
add esp, 0x10
xor edx, edx
test eax, eax
jne 0x47efb9
inc esi
add ebx, 4
cmp esi, 8
jl 0x47ef65
jmp 0x47efbc
mov dword [ebp], esi
mov eax, dword [esp + 0x18]
inc eax
add ebp, 4
cmp eax, 8
mov dword [esp + 0x18], eax
jl 0x47ef55
mov ecx, dword [edi + 0x88]
cmp ecx, edx
je 0x47efe8
mov edx, dword [ecx]
lea eax, [edi + 0x8c]
push eax
call dword [edx + 0x184]
xor edx, edx
mov ecx, dword [edi + 0x1c]
push 1
push edx
push ecx
call dword [sym.imp.user32.dll_InvalidateRect]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x8c], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47f01e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x84]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret