Function at 0x414990
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x43d004]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push esi
push edi
mov ebx, ecx
mov esi, edx
push ebx
call dword [sym.imp.USER32.dll_GetMenu]
movzx ecx, si
mov edi, eax
test cx, cx
jne 0x414a39
xor ecx, ecx
cmp dword [0x43e374], ecx
sete cl
mov dword [0x43e374], ecx
test ecx, ecx
je 0x414a08
push 0x43376c
push dword [0x43fbcc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 8
push 0
push edi
call dword [sym.imp.USER32.dll_CheckMenuItem]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
push 0x4391eb
push dword [0x43fbcc]
call dword [sym.imp.USER32.dll_SetWindowTextA]
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_CheckMenuItem]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, 0xa001
cmp cx, ax
jne 0x414a73
push 0
push 0x407b50
push ebx
push 0x70
push dword [0x43fc28]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
call fcn.00412140
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, 0xa002
cmp cx, ax
jne 0x414bc2
mov eax, dword [0x43e36c]
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x34
lea ecx, [eax + 0x2304]
add eax, 0x7b04
push ecx
push eax
push dword [0x43fc50]
call esi
cmp eax, 6
jne 0x414f37
mov eax, dword [0x43e36c]
push 0x34
lea ecx, [eax + 0x2304]
add eax, 0x8304
push ecx
push eax
push dword [0x43fc50]
call esi
cmp eax, 6
jne 0x414f37
cmp dword [0x43e384], 0
je 0x414afc
push str.Another_thread_is_runing
call fcn.0040f530
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x147
push dword [0x43fc20]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x414b3a
push str.Failed_to_get_combox_sel
call fcn.0040f530
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov edx, dword [0x43e364]
xor eax, eax
test edx, edx
je 0x414f37
mov edi, dword [0x43e360]
mov ecx, dword [edi]
test ecx, ecx
js 0x414b5a
cmp ecx, esi
je 0x414b7a
inc eax
add edi, 0x4920
cmp eax, edx
jb 0x414b50
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [0x43fc2c]
call esi
push 0
push dword [0x43fbd4]
call esi
push 0
push 0
push edi
push 0x4136d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43e384], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, 0xa008
cmp cx, ax
jne 0x414caa
cmp dword [0x43e384], 0
mov dword [esp + 0xc], 0
jne 0x414ada
lea ecx, [esp + 0xc]
call fcn.00413f30
test eax, eax
jne 0x414c36
push str._Part_Resize_PreCheck_Failed_
call fcn.0040f530
mov ecx, dword [0x43e36c]
add esp, 4
push 0x30
lea eax, [ecx + 0x2304]
push eax
lea eax, [ecx + 0x19304]
push eax
push dword [0x43fc50]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, dword [0x43e36c]
push 0x24
lea ecx, [eax + 0x2b04]
add eax, 0x17b04
push ecx
push eax
push dword [0x43fc50]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x414f37
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [0x43fc2c]
call esi
push 0
push dword [0x43fbd4]
call esi
push 0
push 0
push dword [esp + 0x14]
push 0x413ad0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x43e384], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, 0xa007
cmp cx, ax
jne 0x414d41
push 0
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, 1
mov edx, eax
sub ecx, dword [0x43e368]
mov dword [0x43e368], ecx
cmp ecx, 1
jne 0x414d0e
mov ecx, dword [0x43e36c]
add ecx, 0x15304
push ecx
push 0xa007
push 0x408
push 5
push edx
call dword [sym.imp.USER32.dll_ModifyMenuW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, dword [0x43e36c]
add eax, 0x15304
push eax
push 0xa007
push 0x400
push 5
push edx
call dword [sym.imp.USER32.dll_ModifyMenuW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, 0xa006
cmp cx, ax
jne 0x414dbc
push 0
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, 1
mov edx, eax
sub ecx, dword [0x43d8b8]
mov dword [0x43d8b8], ecx
jne 0x414d82
mov ecx, dword [0x43e36c]
add ecx, 0x11304
push ecx
push 0xa006
push 0x408
jmp 0x414d97
mov eax, dword [0x43e36c]
add eax, 0x11304
push eax
push 0xa006
push 0x400
push 4
push edx
call dword [sym.imp.USER32.dll_ModifyMenuW]
mov ecx, ebx
call fcn.00413e20
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, 0x9c4c
cmp cx, ax
jne 0x414e66
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
push 8
push eax
push edi
call esi
push 0
push 0x9c4d
push edi
call esi
mov dword [0x43e380], 0
call fcn.0040f7b0
push eax
push 0x436cc0
lea eax, [esp + 0x18]
push 0x80
push eax
call fcn.00401010
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [esp + 0x20]
add esp, 0x10
push eax
push dword [0x43fbd0]
call esi
cmp dword [0x43e380], 0
mov ecx, 0x437b0c
mov eax, 0x437b08
cmove eax, ecx
push eax
push dword [0x43fc38]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x43fc50]
call esi
push 1
push dword [0x43fc50]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, 0x9c4d
cmp cx, ax
jne 0x414f14
mov esi, dword [sym.imp.USER32.dll_CheckMenuItem]
push 0
push 0x9c4c
push edi
call esi
push 8
push 0x9c4d
push edi
call esi
mov dword [0x43e380], 1
call fcn.0040f7b0
push eax
push 0x436cc0
lea eax, [esp + 0x18]
push 0x80
push eax
call fcn.00401010
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [esp + 0x20]
add esp, 0x10
push eax
push dword [0x43fbd0]
call esi
cmp dword [0x43e380], 0
mov ecx, 0x437b0c
mov eax, 0x437b08
cmove eax, ecx
push eax
push dword [0x43fc38]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x43fc50]
call esi
push 1
push dword [0x43fc50]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret
mov eax, 0xb000
cmp cx, ax
jb 0x414f37
mov eax, dword [0x43e378]
add eax, 0xb000
cmp ecx, eax
jge 0x414f37
add ecx, 0xffff5000
call fcn.00412220
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00417710
mov esp, ebp
pop ebp
ret