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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x55ee8e
mov eax, dword fs:[0]
push eax
sub esp, 0x80
push ebx
push esi
push edi
mov eax, dword [0x660038]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x1c], ebx
mov eax, dword [ebp + 0xc]
push ebx
call fcn.0049ce40
xor ecx, ecx
lea edi, [esp + 0x34]
call fcn.004a89d0
xor edi, edi
mov dword [esp + 0x98], edi
lea eax, [esp + 0x34]
call fcn.00497fe0
push eax
mov eax, str.Color_Schemes
lea esi, [esp + 0x28]
call fcn.004a3480
mov byte [esp + 0x98], 1
mov eax, esi
push eax
mov al, 1
lea esi, [esp + 0x30]
call fcn.004bf5c0
mov byte [esp + 0x98], 2
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
call dword [0x6770dc]
add esp, 8
lea ecx, [esp + 0x18]
call fcn.004949f0
mov byte [esp + 0x98], 3
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx + 8]
lea ecx, [esp + 0x30]
call eax
test al, al
je 0x539c58
lea esp, [esp]
mov byte [esp + 0x44], 0
mov byte [esp + 0x45], 1
mov byte [esp + 0x46], 1
mov byte [esp + 0x47], 1
xor eax, eax
jmp 0x539b00
mov dword [esp + eax*4 + 0x48], edi
mov dword [esp + eax*4 + 0x68], 0xffffff
inc eax
cmp eax, 8
jl 0x539b00
push 0x94
call sub.mfc90u.dll_new_1
add esp, 4
mov dword [esp + 0x20], eax
mov byte [esp + 0x98], 4
cmp eax, edi
je 0x539b39
push eax
call fcn.00445e60
mov ebx, eax
jmp 0x539b3b
xor ebx, ebx
mov byte [esp + 0x98], 3
lea eax, [esp + 0x18]
call fcn.00407eb0
push ebx
call fcn.0049ce40
mov edx, dword [ebx]
mov edx, dword [edx + 0x4c]
lea eax, [esp + 0x24]
push eax
mov ecx, ebx
call edx
test al, al
mov eax, ebx
je 0x539b72
xor cl, cl
call fcn.0049ce50
lea esi, [ebx + 0xc]
jmp 0x539b8b
lea edx, [ebx + 0xc]
mov ecx, 0x11
lea esi, [esp + 0x44]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov cl, 1
call fcn.0049ce50
mov esi, edx
mov ecx, 0x11
lea edi, [ebx + 0x50]
rep movsd dword es:[edi], dword [esi]
lea eax, [ebx + 4]
mov esi, str.Windows
call fcn.00495d20
test al, al
je 0x539c16
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x10], eax
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x30], ecx
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x14], edx
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x34], eax
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x18], ecx
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x38], edx
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x1c], eax
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x3c], ecx
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x20], edx
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x40], eax
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x24], ecx
mov edx, dword [esp + 0x10]
mov dword [ebx + 0x44], edx
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x28], eax
mov ecx, dword [esp + 0x10]
mov dword [ebx + 0x48], ecx
mov edx, dword [esp + 0x14]
mov dword [ebx + 0x2c], edx
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x4c], eax
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x10]
add esi, 0xc
lea ecx, [eax + 1]
cmp ecx, dword [esi]
jle 0x539c2c
call fcn.0053a500
mov ecx, dword [esi + 4]
mov edx, dword [esi + 8]
mov dword [edx + ecx*4], ebx
mov edx, dword [esp + 0x2c]
inc dword [esi + 4]
lea eax, [esp + 0x18]
push eax
mov eax, dword [edx + 8]
lea ecx, [esp + 0x30]
call eax
xor edi, edi
test al, al
jne 0x539ae0
mov ebx, dword [esp + 0x1c]
cmp dword [ebx + 0x10], edi
jg 0x539d77
push 0xffffff
push 0x622a2c
lea ecx, [esp + 0x2c]
push ecx
push ebx
xor ecx, ecx
call fcn.0053a2e0
push 0xf0fbff
push str.Black___Floral_White
lea edx, [esp + 0x2c]
push edx
push ebx
xor ecx, ecx
call fcn.0053a2e0
push edi
push str.Yellow___Black
lea eax, [esp + 0x2c]
push eax
push ebx
mov ecx, 0xffff
call fcn.0053a2e0
push edi
push str.Traditional
lea ecx, [esp + 0x2c]
push ecx
push ebx
mov ecx, 0xff00
call fcn.0053a2e0
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
push edx
push str.Windows
lea eax, [esp + 0x2c]
push eax
push ebx
call fcn.0053a2e0
mov eax, 0xffff00
lea ecx, [esp + 0x44]
push ecx
lea edx, [esp + 0x28]
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 dword [esp + 0x80], eax
mov dword [esp + 0x84], eax
mov dword [esp + 0x88], eax
mov eax, 0xff0000
push edx
push ebx
mov byte [esp + 0x50], 0
mov byte [esp + 0x51], 1
mov byte [esp + 0x52], 1
mov byte [esp + 0x53], 1
mov dword [esp + 0x54], edi
mov dword [esp + 0x5c], edi
mov dword [esp + 0x64], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x58], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x70], eax
call fcn.0053a3e0
push 0x808000
push str.Floral_White___Dark_Cyan
lea eax, [esp + 0x2c]
push eax
push ebx
mov ecx, 0xf0fbff
call fcn.0053a2e0
push edi
lea ecx, [esp + 0x28]
push 0x624da0
push ecx
mov ecx, 0xffffff
jmp 0x539d98
push 0x622a2c
mov edi, ebx
call fcn.0053a080
test al, al
jne 0x539d9e
push 0xffffff
push 0x622a2c
lea edx, [esp + 0x2c]
push edx
xor ecx, ecx
push ebx
call fcn.0053a2e0
mov byte [esp + 0x98], 2
lea ecx, [esp + 0x18]
call fcn.00494b70
mov byte [esp + 0x98], 1
lea ecx, [esp + 0x2c]
call fcn.004bf600
mov byte [esp + 0x98], 0
lea ecx, [esp + 0x24]
call fcn.004a34a0
mov dword [esp + 0x98], 0xffffffff
lea ecx, [esp + 0x34]
call fcn.004a8b30
mov al, 1
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8