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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push 0xffffffffffffffff
push 0x101e6d8b
mov eax, dword fs:[0]
push eax
sub esp, 0x1ec
mov eax, dword [0x102683e0]
xor eax, esp
mov dword [esp + 0x1e4], eax
push esi
push edi
mov eax, dword [0x102683e0]
xor eax, esp
push eax
lea eax, [esp + 0x1f8]
mov dword fs:[0], eax
mov dword [esp + 0x18], ecx
mov edi, dword [ebp + 8]
push 0x20
mov dword [esp + 0x24], edi
mov eax, dword [edi + 0x2c]
mov dword [esp + 0x30], eax
call fcn.101a0294
add esp, 4
test eax, eax
je 0x1004cb0f
lea ecx, [edi + 0x1c]
push ecx
push dword [edi + 0x18]
mov ecx, eax
call fcn.1004d350
jmp 0x1004cb11
xor eax, eax
mov dword [esp + 0x28], eax
mov eax, dword [eax]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x200], 0
movdqu xmm0, xmmword [edi + 0x1c]
mov esi, dword [edi + 0x14]
movdqa xmmword [esp + 0x74], xmm0
mov eax, dword [edi + 0x10]
mov ecx, eax
and ecx, 2
and eax, 1
mov dword [esp + 0x24], ecx
test ecx, ecx
jne 0x1004cb53
mov dword [esp + 0x14], 1
test eax, eax
jne 0x1004cb5b
mov dword [esp + 0x14], 0
push 0x47
call dword [sym.imp.USER32.dll_GetSystemMetrics]
push 0xfe
lea edi, [eax + 0xa]
xor eax, eax
push eax
mov word [esp + 0xf4], ax
lea eax, [esp + 0xf6]
push eax
call fcn.101a01b0
add esp, 0xc
lea eax, [esp + 0x44]
push 0x30
push 0
push eax
call fcn.101a01b0
add esp, 0xc
mov dword [esp + 0x44], 0x30
lea eax, [esp + 0xec]
mov dword [esp + 0x48], 0x3f
mov dword [esp + 0x68], eax
lea eax, [esp + 0x44]
mov dword [esp + 0x6c], 0x80
push eax
mov eax, dword [esp + 0x24]
push 0
push dword [eax + 8]
push esi
call dword [sym.imp.USER32.dll_GetMenuItemInfoW]
movdqa xmm1, xmmword [esp + 0x74]
movdqa xmm0, xmm1
movd eax, xmm1
psrldq xmm0, 4
movd dword [esp + 0x98], xmm0
movdqa xmm0, xmm1
psrldq xmm0, 0xc
movd dword [esp + 0xa0], xmm0
movdqa xmm0, xmm1
mov dword [esp + 0x94], eax
add eax, edi
psrldq xmm0, 8
movd ecx, xmm0
mov dword [esp + 0x9c], eax
add eax, 0xfffffff6
movdqa xmmword [esp + 0x84], xmm1
sub ecx, edi
mov dword [esp + 0x84], eax
mov edi, dword [esp + 0x1c]
movdqa xmmword [esp + 0xa4], xmm1
mov dword [esp + 0xa4], ecx
lea eax, [ecx + 0xa]
mov dword [esp + 0x30], vtable.CFontDC.0
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x18]
add eax, 0x10
mov dword [esp + 0x38], edi
push eax
mov byte [esp + 0x44], 1
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push edi
mov dword [esp + 0x3c], eax
call esi
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x14], 0
mov byte [esp + 0x200], 2
je 0x1004cd7e
push 0xff8533
sub esp, 8
lea ecx, [esp + 0x80]
push edi
call fcn.10068590
mov ecx, 0xfffdfd
call fcn.10068130
mov ecx, eax
mov dword [esp + 0x14], eax
shr ecx, 8
mov edx, 0xff
mov dword [esp + 0x18], ecx
movzx ecx, cl
sub edx, ecx
shr eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, 0x51eb851f
imul ecx, edx, 0x46
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x18]
add dl, al
mov eax, dword [esp + 0x1c]
movzx ecx, al
shl ecx, 8
movzx eax, dl
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
movzx eax, al
or ecx, eax
call fcn.100682f0
push eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
push edi
mov dword [esp + 0x24], eax
call esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x18], eax
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x1004cd42
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x1004cd4f
call fcn.10068010
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1004cd68
push eax
push dword [esp + 0x80]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x1004cead
call fcn.10068010
jmp 0x1004cead
mov ecx, 0xffffff
call fcn.10068130
mov ecx, eax
mov dword [esp + 0x14], eax
shr eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, 0xff
shr ecx, 8
mov dword [esp + 0x18], ecx
movzx ecx, cl
sub eax, ecx
imul ecx, eax, 0x32
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x18]
add dl, al
mov eax, dword [esp + 0x1c]
movzx ecx, al
shl ecx, 8
movzx eax, dl
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
movzx eax, al
or ecx, eax
call fcn.100682f0
mov esi, dword [sym.imp.GDI32.dll_SetBkColor]
mov ecx, eax
test edi, edi
je 0x1004ce0b
push ecx
push edi
call esi
push 0
push 0
push 0
lea eax, [esp + 0xa0]
push eax
push 2
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
movdqa xmm0, xmmword [esp + 0x84]
lea eax, [esp + 0xa4]
push eax
lea eax, [esp + 0x78]
movdqa xmmword [esp + 0x78], xmm0
push eax
push eax
call dword [sym.imp.USER32.dll_UnionRect]
mov eax, dword [esp + 0x14]
mov ecx, eax
shr eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, 0xff
shr ecx, 8
mov dword [esp + 0x18], ecx
movzx ecx, cl
sub eax, ecx
imul ecx, eax, 0x4b
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
mov edx, dword [esp + 0x18]
add dl, al
mov eax, dword [esp + 0x1c]
movzx ecx, al
shl ecx, 8
movzx eax, dl
or ecx, eax
mov eax, dword [esp + 0x14]
shl ecx, 8
movzx eax, al
or ecx, eax
call fcn.100682f0
test edi, edi
je 0x1004cea9
push eax
push edi
call esi
push 0
push 0
push 0
lea eax, [esp + 0x80]
push eax
push 2
push 0
push 0
push edi
call dword [sym.imp.GDI32.dll_ExtTextOutW]
mov esi, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
test dword [eax + 0x80], 0x800
je 0x1004cf2a
mov eax, dword [esi + 0x28]
lea ecx, [esp + 0x74]
sub eax, dword [esi + 0x20]
cdq
sub eax, edx
push 0xebebeb
sar eax, 1
sub esp, 8
add eax, dword [esi + 0x20]
mov dword [esi + 0x20], eax
inc eax
mov dword [esi + 0x28], eax
push edi
call fcn.10068590
test edi, edi
je 0x1004cefb
push dword [esi + 0x28]
push dword [esi + 0x24]
push dword [esi + 0x20]
push dword [esi + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_Rectangle]
mov eax, dword [esp + 0x80]
test eax, eax
je 0x1004cf14
push eax
push dword [esp + 0x80]
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x1004d078
call fcn.10068010
jmp 0x1004d078
push eax
lea ecx, [esp + 0xd8]
call fcn.100031d0
mov byte [esp + 0x200], 3
mov ecx, 0x333333
cmp dword [esp + 0x24], 0
mov eax, 0x999999
cmove eax, ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_SetTextColor]
push 1
push edi
call dword [sym.imp.GDI32.dll_SetBkMode]
add dword [esp + 0x84], 0xa
lea ecx, [esp + 0xbc]
sub dword [esp + 0x8c], 0xa
push 0x1022c5cc
call fcn.100031d0
sub esp, 0x18
mov byte [esp + 0x218], 4
mov ecx, esp
push 0x1022a5e4
call fcn.100031d0
lea eax, [esp + 0xd4]
push eax
lea edx, [esp + 0xf0]
lea ecx, [esp + 0x90]
call fcn.10022b40
add esp, 0x1c
cmp dword [esp + 0xd0], 8
jb 0x1004cfd1
push dword [esp + 0xbc]
call fcn.101a02f0
add esp, 4
mov esi, dword [esp + 0x74]
xor ecx, ecx
mov edx, dword [esp + 0x78]
mov dword [esp + 0x14], ecx
cmp esi, edx
je 0x1004d02b
cmp ecx, 1
mov eax, 0x24
mov ecx, 0x26
cmove eax, ecx
cmp dword [esi + 0x14], 8
jb 0x1004cffd
mov ecx, dword [esi]
jmp 0x1004cfff
mov ecx, esi
push eax
lea eax, [esp + 0x88]
push eax
push dword [esi + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_DrawTextW]
mov ecx, dword [esp + 0x14]
add esi, 0x18
mov edx, dword [esp + 0x78]
inc ecx
mov dword [esp + 0x14], ecx
cmp esi, edx
jne 0x1004cfe3
mov esi, dword [esp + 0x74]
test esi, esi
je 0x1004d05f
push dword [esp + 0x24]
push ecx
mov ecx, esi
call fcn.10004950
push dword [esp + 0x7c]
call fcn.101a02f0
add esp, 0xc
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
cmp dword [esp + 0xe8], 8
jb 0x1004d078
push dword [esp + 0xd4]
call fcn.101a02f0
add esp, 4
mov esi, dword [esp + 0x28]
mov ecx, esi
call fcn.1004d200
push esi
call fcn.101a02f0
mov eax, dword [esp + 0x40]
add esp, 4
test eax, eax
je 0x1004d09c
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [esp + 0x34]
test ecx, ecx
je 0x1004d0a9
call fcn.10068010
mov ecx, dword [esp + 0x1f8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.101a0193
mov esp, ebp
pop ebp
ret 4