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

Disassembly:
push 0xffffffffffffffff
push 0x51b7d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov ebx, ecx
call fcn.005157bf
mov ecx, dword [eax + 4]
call fcn.004fc07b
mov ecx, dword [esp + 0x6c]
mov edx, dword [ebx + 0x90]
mov eax, dword [ebx + 0x94]
push ecx
xor ebp, ebp
push edx
mov ecx, ebx
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x38], eax
call fcn.00412e80
mov eax, dword [ebx + 0x1c]
mov esi, dword [sym.imp.user32.dll_InvalidateRect]
push 1
push ebp
push eax
mov dword [ebx + 0xb4], 1
mov dword [ebx + 0x94], 0xffffffff
call esi
mov ecx, dword [ebx + 0x1c]
mov edi, dword [sym.imp.user32.dll_UpdateWindow]
push ecx
call edi
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
call dword [sym.imp.winmm.dll_timeGetTime]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
mov dword [esp + 0x24], ebp
jle 0x4136b7
xor esi, esi
mov edi, 0x32
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x6c], ecx
lea esp, [esp]
cmp edi, 0x32
jl 0x413740
cmp ebp, dword [ebx + 0x5c]
jge 0x413740
mov eax, dword [ebx + 0x58]
add eax, esi
cmp edx, dword [eax + 0x28]
jge 0x4135c1
cmp ebp, dword [ebx + 0x5c]
jge 0x413740
mov eax, dword [ebx + 0x58]
add eax, esi
test ecx, ecx
jl 0x413740
cmp edx, dword [eax + 0x28]
jge 0x413740
mov ebp, dword [eax + 0x24]
mov esi, dword [ebp + ecx]
add ebp, ecx
mov ecx, dword [esi - 0x10]
mov edx, dword [ecx]
sub esi, 0x10
call dword [edx + 0x10]
mov edx, dword [esi + 0xc]
test edx, edx
lea ecx, [esi + 0xc]
jl 0x41347e
cmp eax, dword [esi]
jne 0x41347e
mov eax, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4134b0
mov ecx, dword [esi + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
test eax, eax
je 0x41373b
mov edx, dword [esi + 4]
mov dword [eax + 4], edx
mov ecx, dword [esi + 4]
inc ecx
mov edx, ecx
shr ecx, 2
add esi, 0x10
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 4]
mov ebp, dword [ebp + 8]
add eax, 0x10
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ebp
mov ecx, dword [eax - 0xc]
test ecx, ecx
mov byte [esp + 0x64], 1
je 0x413573
call fcn.004fc30b
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x30]
push 0x52fc54
push ecx
mov byte [esp + 0x70], 2
call fcn.0040c200
mov esi, dword [esp + 0x38]
push esi
push 0x52fc50
mov byte [esp + 0x78], 3
call dword [sym.imp.rgss102j.dll_RGSSSetStringACP]
push ebp
push edi
lea edx, [esp + 0x3c]
push 0x52fc34
push edx
call fcn.004024a0
mov edi, dword [esp + 0x44]
push edi
call dword [sym.imp.rgss102j.dll_RGSSEval]
lea eax, [esi - 0x10]
add esp, 0x28
mov byte [esp + 0x64], 2
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413554
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov byte [esp + 0x64], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413573
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
mov byte [esp + 0x64], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x413596
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x6c]
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x14], ecx
mov edx, dword [esp + 0x14]
add eax, 0xc
mov dword [esp + 0x6c], eax
mov ecx, eax
jmp 0x413410
mov dword [ebx + 0x94], ebp
call dword [sym.imp.winmm.dll_timeGetTime]
sub eax, dword [esp + 0x18]
cmp eax, edi
jae 0x41360b
mov esi, 0x14
lea ebx, [ebx]
mov ecx, dword [ebx + 0x70]
push 0
push 0
call fcn.004b6b90
dec esi
jne 0x4135e0
mov eax, dword [ebx + 0x1c]
push 1
push 0
push eax
call dword [sym.imp.user32.dll_InvalidateRect]
mov ecx, dword [ebx + 0x1c]
push ecx
call dword [sym.imp.user32.dll_UpdateWindow]
mov esi, dword [esp + 0x1c]
call dword [sym.imp.winmm.dll_timeGetTime]
sub eax, dword [esp + 0x18]
cmp eax, edi
jae 0x41368d
lea esp, [esp]
push 0
push 0x113
push 0x113
push 0
lea edx, [esp + 0x50]
push edx
call dword [sym.imp.user32.dll_PeekMessageA]
test eax, eax
je 0x41366c
push 0x113
push 0x113
push 0
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.user32.dll_GetMessageA]
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.user32.dll_TranslateMessage]
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.user32.dll_DispatchMessageA]
jmp 0x41367f
push 0x4bf
push 1
push 0
push 0
push 0
call dword [sym.imp.user32.dll_MsgWaitForMultipleObjects]
call dword [sym.imp.winmm.dll_timeGetTime]
sub eax, dword [esp + 0x18]
cmp eax, edi
jb 0x413620
mov eax, dword [ebx + 0x5c]
inc ebp
add esi, 0x38
add edi, 0x32
cmp ebp, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x1c], esi
mov dword [esp + 0x28], edi
jl 0x413400
mov esi, dword [sym.imp.user32.dll_InvalidateRect]
mov edi, dword [sym.imp.user32.dll_UpdateWindow]
mov eax, dword [ebx + 0x1c]
push 1
push 0
or ebp, 0xffffffff
push eax
mov dword [ebx + 0x94], ebp
call esi
mov ecx, dword [ebx + 0x1c]
push ecx
call edi
push 0xc8
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebx + 0x90]
mov edx, dword [esp + 0x30]
push 1
push eax
mov ecx, ebx
mov dword [ebx + 0xb4], 0
mov dword [ebx + 0x94], edx
call fcn.00412e80
mov ecx, dword [ebx + 0x1c]
push 1
push 0
push ecx
call esi
mov edx, dword [ebx + 0x1c]
push edx
call edi
call dword [sym.imp.rgss102j.dll_RGSSGC]
mov dword [esp + 0x64], ebp
call fcn.005157bf
mov ecx, dword [eax + 4]
call fcn.004fc090
mov ecx, dword [esp + 0x5c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x58
ret 4
call fcn.00401320
call fcn.004f797e
int3