Function at 0x10046f00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f9c97
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x1013c014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x5c], ecx
mov esi, dword [0x1014e914]
mov edi, dword [ebp + 8]
cmp dword [esi], 0
je 0x100474b4
mov eax, dword [esi + 4]
cmp eax, 2
je 0x10046f59
cmp eax, 3
je 0x10046f59
cmp eax, 4
je 0x10046f59
cmp eax, 5
jne 0x10046f6c
push str.MenuFadeSpeed
push dword [esi]
call fcn.100dc721
add esp, 8
test eax, eax
je 0x10046f79
add esi, 0x60
cmp dword [esi], 0
jne 0x10046f42
jmp 0x100474b4
push 0x10158d3c
call dword [sym.imp.KERNEL32.dll_AcquireSRWLockShared]
mov esi, dword [esi + 0x40]
push 0x10158d3c
mov dword [ebp - 0x78], esi
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockShared]
test esi, esi
jle 0x100474b4
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], 0
cmp edi, dword [eax + 0x1c0]
jne 0x100470bc
mov eax, dword [eax + 0x1b8]
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 9
mov esi, dword [eax + 8]
push 0x110a
push esi
call edi
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x4c]
push eax
push 0
push 0x1104
push esi
call edi
mov eax, dword [ebp - 0x44]
xorps xmm0, xmm0
sub eax, dword [ebp - 0x4c]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x40]
push 0
mov dword [ebp - 0x3c], 0x2c
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x34], eax
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp byte [0x1014b4f3], 0
mov esi, eax
mov dword [ebp - 0x54], esi
je 0x10047035
push 1
push esi
call dword [sym.imp.GDI32.dll_SetLayout]
push 0
push 0
lea eax, [ebp - 0x74]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov edi, dword [sym.imp.GDI32.dll_SelectObject]
push eax
push esi
mov dword [ebp - 0x58], eax
call edi
mov ecx, dword [ebp - 0x48]
mov esi, eax
push 0
neg ecx
push ecx
mov ecx, dword [ebp - 0x4c]
neg ecx
push ecx
push dword [ebp - 0x54]
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov ecx, dword [ebp - 0x5c]
push 4
push dword [ebp - 0x54]
mov eax, dword [ecx + 0x1b8]
push 0x318
push dword [eax + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
mov esi, dword [ebp - 0x54]
push esi
call edi
push esi
call dword [sym.imp.GDI32.dll_DeleteDC]
mov ecx, dword [ebp - 0x5c]
push 2
mov eax, dword [ecx + 0x1b8]
lea ecx, [ebp - 0x4c]
push ecx
push 0
push dword [eax + 8]
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov edi, dword [ebp - 0x58]
jmp 0x10047418
lea ecx, [ebp - 0x4c]
push ecx
push edi
mov ecx, eax
call fcn.10059640
mov eax, dword [ebp - 0x44]
xorps xmm0, xmm0
sub eax, dword [ebp - 0x4c]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x48]
sub eax, dword [ebp - 0x40]
push 0
mov dword [ebp - 0x3c], 0x2c
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x34], eax
movq qword [ebp - 0x18], xmm0
mov dword [ebp - 0x30], 0x200001
mov dword [ebp - 0x2c], 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
cmp byte [0x1014b4f3], 0
mov esi, eax
mov dword [ebp - 0x50], esi
je 0x1004711e
push 1
push esi
call dword [sym.imp.GDI32.dll_SetLayout]
push 0
push 0
lea eax, [ebp - 0x74]
push eax
push 0
lea eax, [ebp - 0x3c]
push eax
push esi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
push eax
push esi
mov dword [ebp - 0x58], eax
call dword [sym.imp.GDI32.dll_SelectObject]
mov ecx, dword [ebp - 0x48]
push 0
neg ecx
mov dword [ebp - 0x7c], eax
push ecx
mov ecx, dword [ebp - 0x4c]
neg ecx
push ecx
push esi
call dword [sym.imp.GDI32.dll_SetViewportOrgEx]
mov eax, dword [ebp - 0x5c]
imul ecx, edi, 0x54
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x6c], ecx
mov eax, dword [ecx + eax + 0x14]
cmp eax, 2
jne 0x10047172
xor eax, eax
jmp 0x10047189
cmp eax, 6
jne 0x1004717e
mov eax, 4
jmp 0x10047189
cmp eax, 0xb
mov ecx, 9
cmove eax, ecx
imul esi, eax, 0x128
cmp byte [esi + 0x1014c1e8], 0
je 0x100473de
cmp dword [esi + 0x1014c1ec], 0
je 0x100473de
cmp byte [esi + 0x1014c1ea], 0
je 0x100473de
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
push 0
push edi
mov dword [ebp - 0x68], edi
call dword [sym.imp.GDI32.dll_SetLayout]
cmp byte [esi + 0x1014c1e8], 0
je 0x100471de
mov eax, dword [esi + 0x1014c1ec]
jmp 0x100471e0
xor eax, eax
push eax
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push 0
mov dword [ebp - 0x88], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
push eax
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
call dword [sym.imp.USER32.dll_FillRect]
mov eax, dword [esi + 0x1014c210]
mov edx, dword [esi + 0x1014c1f0]
mov edi, dword [ebp - 0x6c]
mov ecx, dword [esi + 0x1014c1f8]
mov dword [ebp - 0x84], eax
mov eax, dword [esi + 0x1014c208]
mov dword [ebp - 0x80], eax
mov eax, dword [esi + 0x1014c20c]
add eax, dword [esi + 0x1014c208]
add eax, dword [esi + 0x1014c210]
mov dword [ebp - 0x8c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], edx
add edx, dword [esi + 0x1014c1f4]
add edx, ecx
mov dword [ebp - 0x98], 0
mov eax, dword [eax + 0xa0]
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x90], edx
cmp dword [edi + eax], 0x26
mov edi, dword [ebp - 0x68]
jne 0x10047293
mov eax, dword [esi + 0x1014c1fc]
add eax, dword [esi + 0x1014c200]
mov ecx, dword [esi + 0x1014c204]
add eax, ecx
add eax, edx
mov dword [ebp - 0x90], eax
mov esi, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x64]
neg edx
cmp eax, esi
mov dword [ebp - 0x60], edx
push 0
cmovg eax, esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 0xa8], eax
cmp ecx, esi
mov eax, dword [ebp - 0x80]
cmovg ecx, esi
cmp eax, edx
mov dword [ebp - 0xa0], ecx
mov ecx, edi
cmovg eax, edx
mov dword [ebp - 0xa4], eax
mov eax, dword [ebp - 0x84]
cmp eax, edx
cmovg eax, edx
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x9c], eax
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x98]
push eax
call fcn.10068e30
add esp, 0x10
push dword [ebp - 0x88]
push edi
call dword [sym.imp.GDI32.dll_SelectObject]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
push dword [ebp - 0x7c]
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_SelectObject]
cmp dword [ebp - 0x60], 0
mov dword [ebp - 0x68], 0
jle 0x100473cf
mov ecx, dword [ebp - 0x60]
xor edi, edi
mov dword [ebp - 0x6c], edi
or eax, 0xffffffff
xor edx, edx
mov dword [ebp - 0x64], eax
test esi, esi
jle 0x100473b3
mov esi, dword [ebp - 0x74]
add esi, edi
mov ecx, dword [esi]
mov edi, eax
and ecx, 0xff000000
cmp ecx, 0x20000000
jb 0x1004736c
cmp edi, 0xffffffff
mov eax, edx
cmovne eax, edi
mov edi, dword [ebp - 0x64]
cmp edi, edx
jge 0x1004736f
mov edi, edx
mov dword [ebp - 0x64], edi
jmp 0x1004736f
mov edi, dword [ebp - 0x64]
inc edx
add esi, 4
cmp edx, dword [ebp - 0x54]
jl 0x10047344
test eax, eax
js 0x100473ad
mov edx, dword [ebp - 0x68]
inc edi
lea ecx, [edx + 1]
push ecx
push edi
push edx
push eax
call dword [sym.imp.GDI32.dll_CreateRectRgn]
mov edi, dword [ebp - 0x70]
mov esi, eax
test edi, edi
jne 0x1004739b
mov dword [ebp - 0x70], esi
jmp 0x100473ad
push 2
push esi
push edi
push edi
call dword [sym.imp.GDI32.dll_CombineRgn]
push esi
call dword [sym.imp.GDI32.dll_DeleteObject]
mov esi, dword [ebp - 0x54]
mov ecx, dword [ebp - 0x60]
mov eax, dword [ebp - 0x68]
lea edx, [esi*4]
add dword [ebp - 0x6c], edx
inc eax
mov edi, dword [ebp - 0x6c]
mov dword [ebp - 0x68], eax
cmp eax, ecx
jl 0x10047333
mov edi, dword [ebp - 0x58]
push edi
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_SelectObject]
jmp 0x100473e1
mov edi, dword [ebp - 0x58]
mov esi, dword [ebp - 0x5c]
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x50]
mov ecx, esi
call fcn.1006d120
push dword [ebp - 0x7c]
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x50]
call dword [sym.imp.GDI32.dll_DeleteDC]
push 2
lea eax, [ebp - 0x4c]
push eax
push 0
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_MapWindowPoints]
test edi, edi
je 0x100474b4
push 0x48
call fcn.100d4e1d
mov esi, eax
add esp, 4
mov dword [ebp - 0x74], esi
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.USER32.dll_DefWindowProcW]
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x70]
mov byte [ebp - 4], 1
mov dword [esi + 0x34], eax
mov eax, dword [ebp - 0x78]
mov dword [esi], vtable.CMenuFader.0
mov dword [esi + 0x30], edi
mov dword [esi + 0x28], eax
movups xmm0, xmmword [ebp - 0x4c]
mov dword [ebp - 0x78], esi
movups xmmword [esi + 0x38], xmm0
mov eax, dword [0x1014e8d4]
cmp dword [0x1014e8d8], eax
je 0x10047496
mov dword [eax], esi
add dword [0x1014e8d4], 4
jmp 0x100474a0
lea ecx, [ebp - 0x78]
push ecx
push eax
call fcn.10047a80
push 0
push 0
push esi
push 0x10046df0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100d4906
mov esp, ebp
pop ebp
ret 4