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

Disassembly:
sub esp, 0x5c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x70]
push str.MuiPanelDraw
push edi
mov byte [esp + 0x2c], 0
call fcn.00413fc0
add esp, 8
test al, al
je 0x4177ef
lea eax, [edi + edi*4]
mov ebx, edi
shl ebx, 4
lea ecx, [edi + eax*2]
mov eax, dword [0x4b17a8]
shl ecx, 6
sub ecx, edi
add ebx, 0xbf33a8
cmp edi, eax
lea esi, [ecx*8 + 0x1d726c0]
jne 0x4174e1
mov byte [esp + 0x24], 1
mov eax, dword [ebx + 8]
test eax, eax
jg 0x417503
push edi
push str._d:_NUM_PER_PAGE___0
push str.MuiPanelDraw
call fcn.00401170
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
cmp dword [esi + 8], 6
je 0x417524
push edi
push str.Panel_ID__d_is_not_a_panel
push str.MuiPanelDraw
call fcn.00401170
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret
lea edx, [esp + 0x3c]
push edx
push edi
call fcn.004173c0
mov ecx, dword [ebx + 8]
mov byte [esp + 0x1b], al
mov eax, dword [esp + 0x44]
add esp, 8
mov dword [esp + 0x30], eax
mov eax, dword [esi + 0x2c]
cdq
idiv ecx
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x34], ebp
jle 0x4177ef
mov edx, dword [0xbf33a0]
mov eax, dword [ebx + 4]
add ecx, edx
mov dword [esp + 0x14], edx
cmp ecx, eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x2c], ecx
jle 0x417574
mov dword [esp + 0x18], eax
test edx, edx
jge 0x417580
mov dword [esp + 0x14], 0
mov al, byte [esp + 0x74]
mov ecx, dword [esp + 0x14]
test al, al
je 0x417617
mov eax, dword [esp + 0x2c]
mov edi, ecx
cmp ecx, eax
jge 0x417613
imul ecx, ebp
mov eax, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov edx, dword [esi + 0x14]
sub eax, ecx
add eax, edx
mov edx, dword [ebx]
cmp edx, edi
sete dl
mov byte [esp + 0x1c], dl
mov edx, dword [esp + 0x18]
cmp edi, edx
jl 0x4175c6
mov byte [esp + 0x1c], 0
cmp byte [esi], 0
jne 0x4175d0
mov byte [esp + 0x1c], 3
test eax, eax
jl 0x417600
mov edx, 0x280
sub edx, ebp
cmp eax, edx
jge 0x417600
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x74]
push ebp
push edx
push eax
mov eax, dword [esi + 0x10]
push eax
push ecx
call fcn.00414650
mov ecx, dword [esp + 0x38]
add esp, 0x18
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
inc edi
add eax, ebp
cmp edi, edx
mov dword [esp + 0x28], eax
jl 0x4175a7
mov edi, dword [esp + 0x70]
mov al, byte [esp + 0x78]
test al, al
je 0x417768
mov eax, dword [ebx + 4]
test eax, eax
jle 0x417768
fild dword [esi + 0x15c4]
fmul dword [0x4b17b0]
call fcn.0046af00
fild dword [esi + 0x15c0]
push eax
fmul dword [0x4b17ac]
call fcn.0046af00
push eax
call fcn.0040acd0
mov edx, dword [esi + 0xc]
push edx
call fcn.0041b9c0
mov al, byte [esp + 0x1f]
add esp, 0xc
test al, al
mov eax, dword [esi + 0x18]
je 0x417674
sub eax, dword [0x47803c]
mov dword [esp + 0x30], eax
mov eax, ebp
mov ebp, dword [esi + 0x15c4]
mov ecx, dword [esp + 0x14]
sub eax, ebp
mov ebp, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x18]
cmp ecx, eax
jge 0x417764
mov edx, dword [esp + 0x34]
imul ecx, edx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x78], ecx
mov eax, dword [esp + 0x78]
mov edi, dword [esi + 0x14]
sub eax, ecx
add eax, edi
mov edi, eax
mov eax, dword [ebx]
cmp eax, ebp
jne 0x4176db
mov al, byte [esi + 0x15b7]
mov byte [esp + 0x1c], al
mov al, byte [esi + 0x15b8]
mov byte [esp + 0x28], al
mov al, byte [esi + 0x15b9]
jmp 0x4176f5
mov al, byte [esi + 0x15b1]
mov byte [esp + 0x1c], al
mov al, byte [esi + 0x15b2]
mov byte [esp + 0x28], al
mov al, byte [esi + 0x15b3]
test edi, edi
mov byte [esp + 0x2c], al
jl 0x41774d
mov eax, 0x280
sub eax, edx
cmp edi, eax
jge 0x41774d
push ebp
call dword [ebx + 0xc]
mov ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
push eax
mov eax, dword [esp + 0x30]
push 0
push ecx
mov ecx, dword [esp + 0x2c]
push edx
mov edx, dword [esi + 0x15c4]
push eax
mov eax, dword [esp + 0x50]
push ecx
mov ecx, dword [esp + 0x4c]
add edx, eax
add edx, edi
add eax, edi
push edx
mov edx, dword [esi + 0x10]
push ecx
push eax
push edx
call fcn.0041b9f0
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x4c]
add esp, 0x2c
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x18]
inc ebp
add edi, edx
cmp ebp, eax
mov dword [esp + 0x78], edi
jl 0x4176ac
mov edi, dword [esp + 0x70]
mov al, byte [esp + 0x13]
test al, al
je 0x4177ef
mov al, byte [esp + 0x74]
test al, al
je 0x4177ef
cmp byte [esi], 0
jne 0x417782
mov byte [esp + 0x24], 3
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x4c]
push ecx
mov ecx, dword [esp + 0x48]
push edx
push eax
push ecx
push edi
call fcn.00414650
fild dword [esp + 0x80]
add esp, 0x14
fmul dword [0x4b17b0]
fstp dword [esp]
fild dword [esp + 0x60]
push ecx
fmul dword [0x4b17ac]
fstp dword [esp]
fild dword [esp + 0x68]
push ecx
fmul dword [0x4b17b0]
fstp dword [esp]
fild dword [esp + 0x64]
push ecx
fmul dword [0x4b17ac]
fstp dword [esp]
push 9
call fcn.00410e70
push 9
call fcn.00410ed0
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x5c
ret