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

Disassembly:
sub esp, 0x64
push ebx
mov ebx, dword [esp + 0x6c]
push esi
push edi
push str.MuiScriptDraw
push ebx
call fcn.00413fc0
add esp, 8
test al, al
je 0x41886c
lea eax, [ebx + ebx*4]
lea ecx, [ebx + eax*2]
lea eax, [ebx + ebx*4]
shl ecx, 6
lea edx, [eax + eax*4]
sub ecx, ebx
lea eax, [ebx + edx*4]
lea edi, [ecx*8 + 0x1d726c0]
mov dword [esp + 0x18], edi
lea esi, [ebx + eax*2]
mov eax, dword [edi + 8]
shl esi, 4
add esi, 0xbf52e8
cmp eax, 7
je 0x41847d
push ebx
push str.Panel_ID__d_is_not_a_script
push str.MuiScriptDraw
call fcn.00401170
add esp, 0xc
pop edi
pop esi
pop ebx
add esp, 0x64
ret
lea ecx, [esp + 0x38]
push ecx
push ebx
call fcn.00418880
mov al, byte [esp + 0x80]
add esp, 8
test al, al
je 0x41849f
push ebx
call fcn.004143f0
add esp, 4
mov al, byte [esp + 0x7c]
test al, al
je 0x418812
mov eax, dword [esi + 0xc88]
test eax, eax
jle 0x418812
mov edx, dword [edi + 0x15c4]
mov eax, dword [edi + 0x15c0]
push ebp
push edx
push eax
mov dword [esp + 0x88], 0
mov byte [esp + 0x28], 0
call fcn.0040ad40
fild dword [edi + 0x28]
add esp, 8
fmul dword [str._n__n]
call fcn.0046af00
fild dword [edi + 0x2c]
mov ebp, eax
fmul dword [str._n__n]
call fcn.0046af00
mov edi, dword [edi + 0x10]
mov ebx, eax
lea ecx, [edi + ebp]
mov dword [esp + 0x78], ecx
fild dword [esp + 0x78]
fmul dword [0x4b17ac]
call fcn.0046af00
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x14]
add eax, ebx
mov dword [esp + 0x78], eax
fild dword [esp + 0x78]
fmul dword [0x4b17b0]
call fcn.0046af00
sub edi, ebp
mov ebp, dword [esp + 0x3c]
add edi, ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x78], edi
fild dword [esp + 0x78]
fmul dword [0x4b17ac]
call fcn.0046af00
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x30], eax
mov ecx, dword [edi + 0x1c]
sub ecx, ebx
mov dword [esp + 0x78], ecx
fild dword [esp + 0x78]
fmul dword [0x4b17b0]
call fcn.0046af00
fild dword [edi + 0x15c4]
mov dword [esp + 0x2c], eax
fmul dword [0x4b17b0]
call fcn.0046af00
mov ebp, dword [esi + 0xc88]
mov dword [esp + 0x24], eax
lea eax, [ebp - 1]
test eax, eax
jl 0x4185e7
mov ebx, dword [esi + 0xc84]
lea edi, [eax + 1]
mov edx, edi
shl edx, 4
add edx, esi
cmp ebx, dword [edx]
jl 0x4185e4
mov cl, byte [esi + 0xc84]
mov dword [esp + 0x80], eax
sub cl, byte [edx]
xor edx, edx
shl eax, 4
mov byte [esp + 0x20], cl
mov dl, byte [eax + esi + 0xc]
movsx eax, cl
cmp eax, edx
jl 0x4185e1
mov dword [esp + 0x80], edi
mov byte [esp + 0x20], 0
or eax, 0xffffffff
dec eax
jns 0x4185a4
mov eax, dword [esp + 0x80]
mov ebx, eax
cmp eax, ebp
mov dword [esp + 0x14], ebx
jge 0x418811
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
sub eax, ecx
mov dword [esp + 0x38], eax
jmp 0x418610
mov ebx, dword [esp + 0x14]
mov ecx, ebx
xor ebp, ebp
shl ecx, 4
mov dword [esp + 0x18], ebp
mov byte [esp + 0x80], 0
mov al, byte [ecx + esi + 5]
lea edi, [ecx + esi]
cmp al, 2
mov byte [esp + 0x78], 0
jne 0x41863c
push 6
call fcn.0040ad80
jmp 0x418662
cmp al, 1
jne 0x418648
push ebp
call fcn.0040ad80
jmp 0x418662
cmp al, 3
jne 0x418655
push 2
call fcn.0040ad80
jmp 0x418662
mov edx, dword [esp + 0x1c]
mov eax, dword [edx + 0xc]
push eax
call fcn.0041b9c0
mov al, byte [edi + 4]
add esp, 4
test al, al
je 0x4186ad
cmp al, 1
mov byte [esp + 0x78], 1
jne 0x418691
mov ecx, dword [esi + 0xc94]
mov edx, dword [esi + 0xc90]
mov eax, dword [esi + 0xc8c]
push ecx
push edx
push eax
call fcn.0040ae20
jmp 0x4186cb
mov ecx, dword [esi + 0xca0]
mov edx, dword [esi + 0xc9c]
mov eax, dword [esi + 0xc98]
push ecx
push edx
push eax
call fcn.0040ae20
jmp 0x4186cb
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 0x15b3]
mov dl, byte [eax + 0x15b2]
mov al, byte [eax + 0x15b1]
push ecx
push edx
push eax
call fcn.0040ad90
mov ecx, dword [esi + 0xc88]
add esp, 0xc
dec ecx
cmp ebx, ecx
jge 0x4186ed
mov edx, dword [edi + 0x18]
mov eax, dword [esi]
mov cl, byte [edx + eax - 1]
lea eax, [edx + eax - 1]
mov byte [esp + 0x13], cl
mov byte [eax], 0
mov al, byte [esp + 0x78]
test al, al
je 0x41873d
mov edx, dword [edi + 8]
mov eax, dword [esi]
mov ebx, dword [esp + 0x28]
push ebp
lea ecx, [edx + eax + 3]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x34]
add edx, ebx
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push eax
push ebx
push ecx
call fcn.0040aed0
fild dword [esp + 0x3c]
add esp, 0x18
fmul dword [0x477fe0]
call fcn.0046af00
add eax, ebx
mov byte [esp + 0x80], 1
mov dword [esp + 0x18], eax
jmp 0x4187b6
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x80]
lea eax, [esp + 0x78]
push edx
mov ebx, dword [esp + 0x2c]
push eax
mov eax, dword [esi]
push ecx
mov ecx, dword [edi + 8]
lea edx, [esp + 0x24]
push ebp
add eax, ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ecx
push edx
push ebx
push eax
mov dword [esp + 0xa0], ebp
call fcn.0040b0e0
mov eax, dword [esp + 0xa0]
add esp, 0x28
cmp eax, ebp
je 0x418793
mov eax, dword [esp + 0x18]
cmp eax, ebx
jg 0x4187b6
mov ecx, dword [esi]
mov eax, dword [edi + 8]
mov edx, dword [esp + 0x14]
add ecx, eax
push ecx
push edx
push str.Multi_line_not_working_for_paragraph__d:___s_
push str.MuiScriptDraw
call fcn.00401170
mov eax, dword [esp + 0x28]
add esp, 0x10
mov ecx, dword [esi + 0xc88]
mov edx, dword [esp + 0x14]
dec ecx
mov byte [esp + 0x20], 0
cmp edx, ecx
mov dword [esp + 0x28], eax
jge 0x4187df
mov edx, dword [edi + 0x18]
mov eax, dword [esi]
mov cl, byte [esp + 0x13]
mov byte [edx + eax - 1], cl
mov eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x38]
jge 0x4187f0
mov al, byte [esp + 0x80]
test al, al
jne 0x4187fa
mov edx, dword [esi + 0xc88]
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x14]
mov ecx, dword [esi + 0xc88]
inc eax
cmp eax, ecx
mov dword [esp + 0x14], eax
jl 0x41860c
pop ebp
mov al, byte [esp + 0x78]
test al, al
je 0x41886c
mov al, byte [esp + 0x6c]
test al, al
je 0x41886c
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push ecx
push edx
push eax
push 0xa
call fcn.00410e20
push 0xa
call fcn.00410ed0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
mov eax, dword [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x70]
push edx
push eax
push ecx
push 9
call fcn.00410e20
push 9
call fcn.00410ed0
add esp, 0x30
pop edi
pop esi
pop ebx
add esp, 0x64
ret