Function at 0x4158a0
Capabilities:
Create thread
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x8c
mov eax, dword [0x43f004]
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 0x415949
xor ecx, ecx
cmp dword [0x4403f8], ecx
sete cl
mov dword [0x4403f8], ecx
test ecx, ecx
je 0x415918
push 0x43488c
push dword [0x441c54]
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.00418e9d
mov esp, ebp
pop ebp
ret
push 0x43aa8f
push dword [0x441c54]
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.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, 0xa001
cmp cx, ax
jne 0x415983
push 0
push 0x4082c0
push ebx
push 0x70
push dword [0x441c68]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
call fcn.00412db0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, 0xa002
cmp cx, ax
jne 0x415ad2
mov eax, dword [0x4403f0]
mov esi, dword [sym.imp.USER32.dll_MessageBoxW]
push 0x34
lea ecx, [eax + 0x2404]
add eax, 0x7c04
push ecx
push eax
push dword [0x441c90]
call esi
cmp eax, 6
jne 0x415e47
mov eax, dword [0x4403f0]
push 0x34
lea ecx, [eax + 0x2404]
add eax, 0x8404
push ecx
push eax
push dword [0x441c90]
call esi
cmp eax, 6
jne 0x415e47
cmp dword [0x440408], 0
je 0x415a0c
push str.Another_thread_is_runing
call fcn.0040ffe0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x147
push dword [0x441c60]
call dword [sym.imp.USER32.dll_SendMessageW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x415a4a
push str.Failed_to_get_combox_sel
call fcn.0040ffe0
add esp, 4
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
mov edx, dword [0x4403e4]
xor eax, eax
test edx, edx
je 0x415e47
mov edi, dword [0x4403e0]
mov ecx, dword [edi]
test ecx, ecx
js 0x415a6a
cmp ecx, esi
je 0x415a8a
inc eax
add edi, 0x4930
cmp eax, edx
jb 0x415a60
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [0x441c6c]
call esi
push 0
push dword [0x441c5c]
call esi
push 0
push 0
push edi
push 0x4144d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x440408], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, 0xa008
cmp cx, ax
jne 0x415bba
cmp dword [0x440408], 0
mov dword [esp + 0xc], 0
jne 0x4159ea
lea ecx, [esp + 0xc]
call fcn.00414db0
test eax, eax
jne 0x415b46
push str._Part_Resize_PreCheck_Failed_
call fcn.0040ffe0
mov ecx, dword [0x4403f0]
add esp, 4
push 0x30
lea eax, [ecx + 0x2404]
push eax
lea eax, [ecx + 0x19404]
push eax
push dword [0x441c90]
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4403f0]
push 0x24
lea ecx, [eax + 0x2c04]
add eax, 0x17c04
push ecx
push eax
push dword [0x441c90]
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x415e47
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [0x441c6c]
call esi
push 0
push dword [0x441c5c]
call esi
push 0
push 0
push dword [esp + 0x14]
push 0x414900
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x440408], eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, 0xa007
cmp cx, ax
jne 0x415c51
push 0
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, 1
mov edx, eax
sub ecx, dword [0x4403e8]
mov dword [0x4403e8], ecx
cmp ecx, 1
jne 0x415c1e
mov ecx, dword [0x4403f0]
add ecx, 0x15404
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.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4403f0]
add eax, 0x15404
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.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, 0xa006
cmp cx, ax
jne 0x415ccc
push 0
push edi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov ecx, 1
mov edx, eax
sub ecx, dword [0x43f8b8]
mov dword [0x43f8b8], ecx
jne 0x415c92
mov ecx, dword [0x4403f0]
add ecx, 0x11404
push ecx
push 0xa006
push 0x408
jmp 0x415ca7
mov eax, dword [0x4403f0]
add eax, 0x11404
push eax
push 0xa006
push 0x400
push 4
push edx
call dword [sym.imp.USER32.dll_ModifyMenuW]
mov ecx, ebx
call fcn.00414ca0
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, 0x9c4c
cmp cx, ax
jne 0x415d76
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 [0x440404], 0
call fcn.00410260
push eax
push 0x438480
lea eax, [esp + 0x18]
push 0x80
push eax
call fcn.00401360
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [esp + 0x20]
add esp, 0x10
push eax
push dword [0x441c58]
call esi
cmp dword [0x440404], 0
mov ecx, 0x437ec4
mov eax, 0x437ec8
cmove eax, ecx
push eax
push dword [0x441c78]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x441c90]
call esi
push 1
push dword [0x441c90]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, 0x9c4d
cmp cx, ax
jne 0x415e24
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 [0x440404], 1
call fcn.00410260
push eax
push 0x438480
lea eax, [esp + 0x18]
push 0x80
push eax
call fcn.00401360
mov esi, dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [esp + 0x20]
add esp, 0x10
push eax
push dword [0x441c58]
call esi
cmp dword [0x440404], 0
mov ecx, 0x437ec4
mov eax, 0x437ec8
cmove eax, ecx
push eax
push dword [0x441c78]
call esi
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [0x441c90]
call esi
push 1
push dword [0x441c90]
call esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret
mov eax, 0xb000
cmp cx, ax
jb 0x415e47
mov eax, dword [0x4403fc]
add eax, 0xb000
cmp ecx, eax
jge 0x415e47
add ecx, 0xffff5000
call fcn.00412e90
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00418e9d
mov esp, ebp
pop ebp
ret