Function at 0x412680
Capabilities:
Create thread

Disassembly:
mov eax, dword [0x428cd4]
sub esp, 0x104
mov dword [0x428428], 1
push ebx
push ebp
push esi
push edi
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.MSVCRT.dll_strncpy]
push 0x80
xor ebx, ebx
push 0x4287d0
push 0x4292e8
mov byte [0x4292e8], bl
call esi
mov edi, 0x4292e8
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
mov byte [0x429366], bl
mov ebp, dword [sym.imp.USER32.dll_DrawMenuBar]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x4126fd
mov ecx, dword [0x428cc8]
push ebx
push 0x13f
push ecx
call dword [sym.imp.USER32.dll_DeleteMenu]
mov edx, dword [0x428cd4]
push edx
jmp 0x412743
push 0x80
push 0x428850
push 0x4290d4
mov byte [0x4290d4], bl
call esi
mov al, byte [0x4290d4]
add esp, 0xc
cmp al, bl
je 0x412745
mov eax, dword [0x428cc8]
push 0x4290d4
push 0x13f
push ebx
push 0x13f
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov ecx, dword [0x428cd4]
push ecx
call ebp
mov edi, 0x4289d0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4127d0
mov edi, 0x428a10
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4127d0
mov ecx, 0x3f
lea edi, [esp + 0x15]
mov byte [esp + 0x14], bl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x18]
push 0x4289d0
push edx
stosb byte es:[edi], al
call esi
lea eax, [esp + 0x20]
push 0x5f
push eax
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 0x14
cmp eax, ebx
je 0x4127a3
lea ecx, [esp + 0x14]
cmp eax, ecx
je 0x4127a3
mov byte [eax], bl
mov eax, dword [0x428cc8]
lea edx, [esp + 0x14]
push edx
push 0x8011
push ebx
push 0x8011
push eax
call dword [sym.imp.USER32.dll_ModifyMenuA]
mov ecx, dword [0x428cd4]
push ecx
call ebp
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
jmp 0x4127ed
mov edx, dword [0x428cc8]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push ebx
push 0x8011
push edx
call esi
mov eax, dword [0x428cd4]
push eax
call ebp
push 0x13ec
call fcn.004047d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x412822
push 0x13ec
call fcn.004047d0
push eax
call fcn.00415f80
add esp, 8
test eax, eax
jne 0x41283a
mov ecx, dword [0x428cc8]
push ebx
push 0x8012
push ecx
call esi
mov edx, dword [0x428cd4]
push edx
call ebp
push 0x13ed
call fcn.004047d0
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add esp, 4
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 1
jb 0x41286f
push 0x13ed
call fcn.004047d0
push eax
call fcn.00415f80
add esp, 8
test eax, eax
jne 0x412886
mov eax, dword [0x428cc8]
push ebx
push 0x8013
push eax
call esi
mov ecx, dword [0x428cd4]
push ecx
call ebp
cmp dword [0x41e18c], ebx
jne 0x4128a5
mov edx, dword [0x428cc8]
push ebx
push 0x132
push edx
call esi
mov eax, dword [0x428cd4]
push eax
call ebp
call fcn.00405ff0
mov edi, dword [esp + 0x118]
push ebx
push edi
call fcn.0040b6f0
mov esi, eax
add esp, 8
cmp esi, 1
je 0x412a2d
cmp esi, 2
je 0x412a2d
push ebx
call fcn.0040f0b0
call fcn.00404830
mov ecx, dword [0x428cd4]
push ecx
call fcn.00409f50
mov edx, dword [0x428cd4]
add esp, 8
push 0x42740c
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ebx
push eax
push ebx
push 1
push 0x412610
push ebx
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [0x42947c], eax
mov eax, dword [0x42944c]
cmp eax, ebx
jne 0x4129cc
cmp dword [0x429458], ebx
jne 0x4129cc
cmp dword [0x429418], ebx
jne 0x4129cc
mov ecx, dword [0x428cc8]
push ecx
call fcn.004011d0
add esp, 4
call fcn.004124a0
mov edx, dword [0x428cd4]
push edx
call ebp
mov eax, dword [0x428cc8]
mov ecx, dword [0x428cd4]
mov edx, dword [0x428e68]
push ebx
push eax
push ecx
push edx
call fcn.00419ae0
add esp, 0x10
cmp eax, 3
mov dword [0x429464], eax
je 0x41298b
cmp eax, 2
jne 0x412a38
cmp esi, ebx
push ebx
je 0x4129ae
push 0x13e
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push 0x12f
push 0x111
push edi
call dword [sym.imp.USER32.dll_PostMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
mov eax, dword [0x428cc8]
mov esi, dword [sym.imp.USER32.dll_DeleteMenu]
push ebx
push 0x12f
push eax
call esi
mov ecx, dword [0x428cc8]
push ebx
push 0x130
push ecx
call esi
mov edx, dword [0x428cc8]
push ebx
push 0x13a
push edx
call esi
test dword [0x42868c], 0x800000
je 0x412a12
mov eax, dword [0x428cd4]
push eax
call ebp
mov ecx, dword [0x428cd4]
push ebx
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebx
push ebx
push 2
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret