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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5ff4ce
mov eax, dword fs:[0]
push eax
sub esp, 0x78
push ebx
push esi
push edi
mov eax, dword [0x72d630]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x14], ebx
mov eax, dword [ebp + 0xc]
push ebx
call fcn.00488000
xor ecx, ecx
lea edi, [esp + 0x2c]
call fcn.00486580
xor edi, edi
mov dword [esp + 0x90], edi
lea eax, [esp + 0x2c]
call fcn.0048d610
push eax
mov eax, 0x6e0630
lea esi, [esp + 0x20]
call fcn.0047b2d0
mov byte [esp + 0x90], 1
mov eax, esi
push eax
mov al, 1
lea esi, [esp + 0x28]
call fcn.0049a1d0
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x10]
call fcn.00472830
mov byte [esp + 0x90], 3
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 8]
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x28]
call eax
test al, al
je 0x50884d
jmp 0x508720
mov byte [esp + 0x3c], 0
mov byte [esp + 0x3d], 1
mov byte [esp + 0x3e], 1
mov byte [esp + 0x3f], 1
xor eax, eax
jmp 0x508740
mov dword [esp + eax*4 + 0x40], edi
mov dword [esp + eax*4 + 0x60], 0xffffff
inc eax
cmp eax, 8
jl 0x508740
push 0x94
call sub.mfc90u.dll_new_1
add esp, 4
mov dword [esp + 0x18], eax
mov byte [esp + 0x90], 4
cmp eax, edi
je 0x508779
push eax
call fcn.00437740
mov ebx, eax
jmp 0x50877b
xor ebx, ebx
mov byte [esp + 0x90], 3
lea eax, [esp + 0x10]
call fcn.004221b0
push ebx
call fcn.00488000
mov edx, dword [ebx]
mov edx, dword [edx + 0x38]
lea eax, [esp + 0x1c]
push eax
mov ecx, ebx
call edx
test al, al
mov eax, ebx
je 0x5087b2
xor cl, cl
call fcn.00488010
lea esi, [ebx + 0xc]
jmp 0x5087cb
lea edx, [ebx + 0xc]
mov ecx, 0x11
lea esi, [esp + 0x3c]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov cl, 1
call fcn.00488010
mov esi, edx
mov ecx, 0x11
lea edi, [ebx + 0x50]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 4]
mov esi, 0x6e064c
call fcn.00473b10
test al, al
je 0x50880b
lea esi, [ebx + 0x30]
mov edi, 8
push 8
call dword [sym.imp.USER32.dll_GetSysColor]
push 5
mov dword [esi - 0x20], eax
call dword [sym.imp.USER32.dll_GetSysColor]
mov dword [esi], eax
add esi, 4
sub edi, 1
jne 0x5087ee
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
add esi, 0xc
lea ecx, [eax + 1]
cmp ecx, dword [esi]
jle 0x508821
call fcn.0049abc0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
mov dword [ecx + eax*4], ebx
mov eax, dword [esp + 0x24]
inc dword [esi + 4]
lea edx, [esp + 0x10]
push edx
mov edx, dword [eax + 8]
lea ecx, [esp + 0x28]
call edx
xor edi, edi
test al, al
jne 0x508720
mov ebx, dword [esp + 0x14]
cmp dword [ebx + 0x10], edi
jg 0x50896b
push 0xffffff
push str.Monochrome
lea eax, [esp + 0x24]
push eax
push ebx
xor ecx, ecx
call fcn.00508ef0
push 0xf0fbff
push str.Black___Floral_White
lea ecx, [esp + 0x24]
push ecx
push ebx
xor ecx, ecx
call fcn.00508ef0
push edi
push str.Yellow___Black
lea edx, [esp + 0x24]
push edx
push ebx
mov ecx, 0xffff
call fcn.00508ef0
push edi
push str.Traditional
lea eax, [esp + 0x24]
push eax
push ebx
mov ecx, 0xff00
call fcn.00508ef0
mov esi, dword [sym.imp.USER32.dll_GetSysColor]
push 5
call esi
push eax
push 8
call esi
push 0x6e064c
lea ecx, [esp + 0x24]
push ecx
push ebx
mov ecx, eax
call fcn.00508ef0
mov eax, 0xffff00
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], eax
mov eax, 0xff0000
lea edx, [esp + 0x3c]
mov dword [esp + 0x44], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x5c], eax
push edx
lea eax, [esp + 0x20]
push eax
push ebx
mov byte [esp + 0x48], 0
mov byte [esp + 0x49], 1
mov byte [esp + 0x4a], 1
mov byte [esp + 0x4b], 1
mov dword [esp + 0x4c], edi
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], edi
call fcn.00508ff0
push 0x808000
push str.Floral_White___Dark_Cyan
lea ecx, [esp + 0x24]
push ecx
push ebx
mov ecx, 0xf0fbff
call fcn.00508ef0
push edi
push str.White___Black
lea edx, [esp + 0x24]
push edx
mov ecx, 0xffffff
jmp 0x50898c
push str.Monochrome
mov edi, ebx
call fcn.00508c70
test al, al
jne 0x508992
push 0xffffff
push str.Monochrome
lea eax, [esp + 0x24]
push eax
xor ecx, ecx
push ebx
call fcn.00508ef0
mov byte [esp + 0x90], 2
lea ecx, [esp + 0x10]
call fcn.004740c0
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x24]
call fcn.0049a210
mov byte [esp + 0x90], 0
lea ecx, [esp + 0x1c]
call fcn.0047b2f0
mov dword [esp + 0x90], 0xffffffff
lea ecx, [esp + 0x2c]
call fcn.004866e0
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8