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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x17c
mov eax, dword [0x643004]
xor eax, esp
mov dword [esp + 0x178], eax
push ebx
push esi
mov ebx, ecx
mov dword [esp + 0x44], edx
push edi
mov dword [esp + 0x30], ebx
call dword [sym.imp.PAL.dll_PalRenderGetActive]
push dword [ebx + 0x15dfc]
mov esi, dword [sym.imp.PAL.dll_PalSpriteReleaseArray]
mov edi, eax
mov eax, dword [ebx + 0x20]
add eax, 4
mov dword [esp + 0x24], edi
mov dword [esp + 0x5c], eax
mov eax, dword [ebx + 0x24]
add eax, 4
mov dword [esp + 0x58], eax
lea eax, [ebx + 0x15110]
push eax
push edi
call esi
add esp, 0xc
lea eax, [ebx + 0x15310]
push dword [ebx + 0x15dfc]
push eax
push edi
call esi
add esp, 0xc
lea eax, [ebx + 0x15510]
push dword [ebx + 0x15dfc]
push eax
push edi
call esi
add esp, 0xc
lea eax, [ebx + 0x15b14]
push dword [ebx + 0x15dfc]
push eax
push edi
call esi
mov eax, dword [ebx + 0x15dfc]
add esp, 0xc
sub eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [sym.imp.PAL.dll_PalTaskGetTaskData]
mov dword [esp + 0x2c], eax
js 0x42b2d0
mov ebx, dword [esp + 0x34]
lea esi, [ebx*4 + 0x15914]
jmp 0x42b264
mov eax, dword [esp + 0x2c]
push 0
call eax
mov edi, eax
add esp, 4
cmp dword [esi + edi + 0x138], 0
je 0x42b293
mov ecx, dword [edi + 0x16088]
test ecx, ecx
je 0x42b288
mov edx, ebx
call fcn.0042abe0
mov dword [esi + edi + 0x138], 0
push 0
call dword [esp + 0x30]
mov edi, eax
add esp, 4
cmp dword [esi + edi + 0x338], 0
je 0x42b2c4
mov ecx, dword [edi + 0x1608c]
test ecx, ecx
je 0x42b2b9
mov edx, ebx
call fcn.0042abe0
mov dword [esi + edi + 0x338], 0
sub esi, 4
sub ebx, 1
jns 0x42b260
mov ebx, dword [esp + 0x30]
push 0x200
lea eax, [ebx + 0x15510]
push 0
push eax
call fcn.00484a00
add esp, 0xc
lea eax, [ebx + 0x15310]
push 0x200
push 0
push eax
call fcn.00484a00
add esp, 0xc
lea eax, [ebx + 0x15110]
push 0x200
push 0
push eax
call fcn.00484a00
add esp, 0xc
lea eax, [ebx + 0x15714]
push 0x400
push 0
push eax
call fcn.00484a00
add esp, 0xc
lea esi, [ebx + 0x15b14]
push 0x200
push 0
push esi
call fcn.00484a00
add esp, 0xc
lea eax, [ebx + 0x14f10]
push 0x200
push 0
push eax
call fcn.00484a00
mov edx, dword [esp + 0x54]
add esp, 0xc
cmp edx, dword [ebx + 0x15e00]
jle 0x42b377
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x178]
xor ecx, esp
call fcn.00482be9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x15db8]
xor edi, edi
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x15dc4]
mov dword [esp + 0x10], eax
mov dword [ebx + 0x15dd4], edx
mov eax, dword [ebx + 0x49a6c]
add eax, 0x1303
mov dword [esp + 0x30], edi
mov dword [esp + 0x38], eax
cmp edx, dword [ebx + 0x15e00]
jge 0x42ba9f
lea eax, [ebx + 4]
lea ecx, [eax + 0x10f4]
mov dword [esp + 0x4c], ecx
lea ecx, [eax + 0x10f0]
add eax, 0x10e8
mov dword [esp + 0x34], ecx
mov dword [esp + 0x40], eax
imul eax, edx, 0x1ec
mov edx, dword [sym.imp.PAL.dll_PalFontGetColor]
mov dword [esp + 0x64], edx
add eax, 0x15e08
add eax, ebx
mov dword [esp + 0x14], eax
mov eax, dword [sym.imp.PAL.dll_PalFontGetEffect]
mov dword [esp + 0x50], eax
mov eax, dword [sym.imp.PAL.dll_PalSpriteCreate]
mov dword [esp + 0x3c], eax
mov eax, dword [sym.imp.PAL.dll_PalSpriteGetRect]
mov dword [esp + 0x44], eax
mov eax, dword [sym.imp.PAL.dll_PalSpriteSetPos]
mov dword [esp + 0x24], eax
mov eax, dword [sym.imp.PAL.dll_PalSpriteViewCtrl]
mov dword [esp + 0x1c], eax
mov eax, dword [sym.imp.PAL.dll_PalSpriteGetHeight]
mov dword [esp + 0x60], eax
mov eax, dword [sym.imp.PAL.dll_PalSpriteRelease]
mov dword [esp + 0x28], eax
mov eax, dword [sym.imp.PAL.dll_PalFontSetColor]
mov dword [esp + 0x5c], eax
push dword [esp + 0x4c]
push ecx
call edx
mov edx, dword [esp + 0x3c]
add esp, 8
mov ecx, dword [esp + 0x40]
mov eax, dword [edx]
mov dword [ecx], eax
mov eax, dword [edx + 4]
mov edx, dword [esp + 0x14]
mov dword [ecx + 4], eax
lea ecx, [ebx + 4]
call fcn.0043a3a0
mov eax, dword [esp + 0x14]
add eax, 0x1c0
mov dword [esi - 0xc04], eax
call dword [esp + 0x50]
push dword [esp + 0x38]
cmp ax, 3
jne 0x42b48e
mov eax, dword [ebx + 0x24]
mov ecx, dword [ebx + 0x20]
add eax, 4
push eax
mov eax, dword [ebx + 0x10]
add ecx, 4
add eax, ecx
jmp 0x42b499
mov eax, dword [ebx + 0x10]
push dword [esp + 0x58]
add eax, dword [esp + 0x60]
push eax
push dword [esp + 0x2c]
call dword [esp + 0x4c]
mov edx, dword [esp + 0x24]
add esp, 0x10
mov dword [esi - 0x804], eax
mov ecx, eax
push 0
push dword [esp + 0x44]
lea edx, [edx + 0x40]
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push 0
push 0
call fcn.0043cce0
lea eax, [esp + 0x88]
push eax
push dword [esi - 0x804]
call dword [esp + 0x6c]
push dword [esp + 0x60]
mov eax, dword [esp + 0x3c]
sub eax, dword [esp + 0xa0]
push 0x40
push 0x400
push dword [esp + 0x54]
mov dword [esp + 0x48], eax
call dword [esp + 0x74]
mov edx, dword [esp + 0x4c]
mov ecx, eax
push 0
push dword [esp + 0x7c]
mov dword [esi - 0xa04], eax
push dword [ebx + 0x14]
push dword [ebx + 0x10]
push 0x40
push 0x400
push 0
push 0
call fcn.0043cce0
mov eax, dword [esp + 0x6c]
mov ecx, 0x8100
add esp, 0x58
cmp word [eax], cx
je 0x42b782
mov eax, dword [esi - 0xc04]
cmp byte [eax], 0
je 0x42b67e
cmp dword [ebx + 0x15dd8], 0
je 0x42b67e
mov eax, dword [ebx + 0x49a6c]
lea ecx, [ebx + 0x15ddc]
add eax, 0x1307
xor edx, edx
push eax
push 0
call fcn.00447b80
add esp, 8
mov dword [esi - 0x604], eax
cmp dword [ebx + 0x49aac], 0
je 0x42b67e
mov ecx, dword [esp + 0x14]
cmp dword [ecx + 0x1e8], 0
je 0x42b67e
push 2
push 0x62a524
push dword [esi - 0xc04]
call fcn.0048d175
add esp, 0xc
test eax, eax
jne 0x42b67e
mov ax, word [0x62a528]
mov word [esp + 0x78], ax
mov al, byte [0x62a52a]
mov byte [esp + 0x7a], al
mov eax, dword [esi - 0xc04]
movsx eax, byte [eax + 2]
push eax
call fcn.0048ffda
add esp, 4
test eax, eax
je 0x42b604
mov eax, dword [esi - 0xc04]
add eax, 2
push 2
push eax
lea eax, [esp + 0x80]
push eax
call fcn.00490150
add esp, 0xc
jmp 0x42b62b
lea ecx, [esp + 0x78]
dec ecx
nop dword [eax]
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x42b610
mov ax, word [0x62a52c]
mov word [ecx], ax
mov al, byte [0x62a52e]
mov byte [ecx + 2], al
lea edi, [esp + 0x78]
dec edi
mov al, byte [edi + 1]
lea edi, [edi + 1]
test al, al
jne 0x42b630
mov al, byte [0x62a530]
mov ecx, ebx
mov edx, dword [ebx + 0x15d50]
push 0
mov byte [edi], al
mov eax, dword [ebx + 0x15d44]
add eax, dword [esp + 0x14]
mov edi, dword [esp + 0x34]
push 0
push dword [ebx + 0x15d48]
push eax
mov eax, dword [ebx + 0x15d40]
add eax, dword [esp + 0x28]
push eax
lea eax, [esp + 0x8c]
push eax
push edi
call fcn.0042ae00
add esp, 0x1c
lea eax, [esp + 0x68]
push eax
push dword [esi - 0xa04]
call dword [esp + 0x4c]
mov eax, dword [esp + 0x18]
sub eax, dword [esp + 0x7c]
movd xmm0, dword [ebx + 0x15d2c]
movd xmm2, dword [esp + 0x20]
cvtdq2ps xmm0, xmm0
mov dword [esp + 4], 0
mov dword [esp + 0x18], eax
movd xmm1, eax
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
addss xmm0, xmm1
movss dword [esp], xmm0
movd xmm0, dword [ebx + 0x15d28]
cvtdq2ps xmm0, xmm0
push ecx
addss xmm0, xmm2
movss dword [esp], xmm0
push dword [esi - 0xa04]
call dword [esp + 0x34]
movd xmm0, dword [ebx + 0x15d34]
add esp, 4
movd xmm1, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], 0
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
movd xmm1, dword [esp + 0x24]
cvtdq2ps xmm1, xmm1
movss dword [esp + 4], xmm0
movd xmm0, dword [ebx + 0x15d30]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movss dword [esp], xmm0
push dword [esi - 0x804]
call dword [esp + 0x34]
movd xmm0, dword [ebx + 0x15d3c]
add esp, 4
movd xmm1, dword [esp + 0x1c]
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], 0
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
movd xmm1, dword [esp + 0x24]
cvtdq2ps xmm1, xmm1
movss dword [esp + 4], xmm0
movd xmm0, dword [ebx + 0x15d38]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movss dword [esp], xmm0
push dword [esi - 0x604]
jmp 0x42b7c8
push 0
push dword [esi - 0xa04]
call dword [esp + 0x24]
movd xmm0, dword [esp + 0x18]
movd xmm1, dword [esp + 0x20]
cvtdq2ps xmm0, xmm0
mov dword [esp + 4], 0
cvtdq2ps xmm1, xmm1
movss dword [esp], xmm0
movd xmm0, dword [ebx + 0x15d30]
cvtdq2ps xmm0, xmm0
push ecx
addss xmm0, xmm1
movss dword [esp], xmm0
push dword [esi - 0x804]
call dword [esp + 0x34]
mov eax, dword [ebx + 0x10f4]
add esp, 0x10
mov dword [ebx + 0x10ec], eax
mov eax, dword [ebx + 0x10f8]
mov dword [ebx + 0x10f0], eax
push eax
push dword [ebx + 0x10f4]
call dword [esp + 0x64]
add esp, 8
cmp dword [ebx + 0x49ab4], 0
je 0x42b843
cmp byte [ebx + 0x15d68], 0
lea ecx, [ebx + 0x15d68]
je 0x42b843
mov eax, dword [ebx + 0x15d64]
add eax, dword [esp + 0x10]
mov edx, dword [ebx + 0x15d54]
push 1
push dword [ebx + 0x15d5c]
push dword [ebx + 0x15d58]
push eax
mov eax, dword [ebx + 0x15d60]
add eax, dword [esp + 0x28]
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0042ae00
add esp, 0x1c
cmp dword [ebx + 0x49ab8], 0
je 0x42b8f4
mov eax, dword [ebx + 0x49a6c]
lea ecx, [ebx + 0x15d94]
add eax, 0x1307
xor edx, edx
push eax
push 0
call fcn.00447b80
push eax
mov dword [esi], eax
call dword [esp + 0x6c]
mov ecx, dword [ebx + 0x15db4]
add esp, 0xc
sub ecx, eax
mov eax, ecx
mov ecx, dword [esp + 0x10]
cdq
sub eax, edx
sar eax, 1
sub ecx, eax
cmp ecx, dword [ebx + 0x15dbc]
jge 0x42b8a7
push dword [esi]
push dword [esp + 0x24]
call dword [esp + 0x30]
add esp, 8
mov dword [esi], 0
jmp 0x42b8f4
movd xmm1, dword [ebx + 0x15d90]
sub esp, 0xc
cvtdq2ps xmm1, xmm1
mov dword [esp + 8], 0
movd xmm0, ecx
cvtdq2ps xmm0, xmm0
addss xmm1, xmm0
movd xmm0, dword [ebx + 0x15d8c]
cvtdq2ps xmm0, xmm0
movss dword [esp + 4], xmm1
movd xmm1, dword [esp + 0x24]
cvtdq2ps xmm1, xmm1
addss xmm0, xmm1
movss dword [esp], xmm0
push dword [esi]
call dword [esp + 0x34]
add esp, 0x10
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
cmp ecx, dword [ebx + 0x15dbc]
jl 0x42b9b2
test eax, eax
je 0x42b914
push 1
push eax
call dword [esp + 0x24]
add esp, 8
push 1
push dword [esi - 0x804]
call dword [esp + 0x24]
push 1
push dword [esi - 0xa04]
call dword [esp + 0x2c]
push 1
push dword [esi - 0x604]
call dword [esp + 0x34]
add esp, 0x18
cmp dword [ebx + 0x49aac], 0
je 0x42b958
mov eax, dword [esi - 0x400]
test eax, eax
je 0x42b958
push 1
push eax
call dword [esp + 0x24]
add esp, 8
cmp dword [ebx + 0x49ab4], 0
je 0x42b975
mov eax, dword [esi - 0x200]
test eax, eax
je 0x42b975
push 1
push eax
call dword [esp + 0x24]
add esp, 8
mov eax, dword [esp + 0x10]
inc edi
sub eax, dword [ebx + 0x15db4]
add esi, 4
add dword [esp + 0x14], 0x1ec
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x64]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x48]
add eax, edi
mov dword [esp + 0x30], edi
cmp eax, dword [ebx + 0x15e00]
jl 0x42b435
jmp 0x42ba9f
mov esi, dword [esp + 0x20]
test eax, eax
je 0x42b9ce
push eax
push esi
call dword [esp + 0x30]
add esp, 8
mov dword [ebx + edi*4 + 0x15b14], 0
push dword [ebx + edi*4 + 0x15110]
push esi
call dword [esp + 0x30]
push dword [ebx + edi*4 + 0x15310]
mov dword [ebx + edi*4 + 0x15110], 0
push esi
call dword [esp + 0x38]
push dword [ebx + edi*4 + 0x15510]
mov dword [ebx + edi*4 + 0x15310], 0
push esi
call dword [esp + 0x40]
add esp, 0x18
mov dword [ebx + edi*4 + 0x15510], 0
cmp dword [ebx + 0x49aac], 0
je 0x42ba5a
cmp dword [ebx + edi*4 + 0x15714], 0
je 0x42ba5a
push 0
call dword [esp + 0x30]
mov esi, eax
add esp, 4
cmp dword [esi + edi*4 + 0x15a4c], 0
je 0x42ba5a
mov ecx, dword [esi + 0x16088]
test ecx, ecx
je 0x42ba4f
mov edx, edi
call fcn.0042abe0
mov dword [esi + edi*4 + 0x15a4c], 0
cmp dword [ebx + 0x49ab4], 0
je 0x42ba94
push 0
call dword [esp + 0x30]
mov esi, eax
add esp, 4
cmp dword [esi + edi*4 + 0x15c4c], 0
je 0x42ba94
mov ecx, dword [esi + 0x1608c]
test ecx, ecx
je 0x42ba89
mov edx, edi
call fcn.0042abe0
mov dword [esi + edi*4 + 0x15c4c], 0
mov dword [ebx + edi*4 + 0x14f10], 0
mov ecx, dword [esp + 0x184]
mov eax, 1
mov dword [ebx + 0x15dfc], edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00482be9
mov esp, ebp
pop ebp
ret