Function at 0x413410
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
cmp dword [ebp + 0x10], 1
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
jne 0x4137b0
push dword [esi + 0x330]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x4137b0
push 0x7dd9
lea eax, [ebp - 4]
call fcn.00408a73
mov eax, dword [eax]
pop ecx
push 0
mov edx, eax
mov ecx, esi
call fcn.0047cbca
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x413469
push eax
call fcn.00401377
mov edi, dword [sym.imp.USER32.dll_GetDlgItem]
push 1
lea ebx, [esi + 4]
push dword [ebx]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 1
push dword [ebx]
call edi
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x3c]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_GetClientRect]
push 2
push dword [ebx]
call edi
mov dword [esi + 0x328], eax
push 8
lea eax, [ebp - 4]
call fcn.00408a73
pop ecx
push dword [eax]
push dword [esi + 0x328]
call dword [sym.imp.USER32.dll_SetWindowTextA]
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4134d5
push eax
call fcn.00401377
lea eax, [ebp - 0x2c]
push eax
push dword [esi + 0x328]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x2c]
mov edi, ebx
call fcn.0040a8d1
push 0
push 0
push 0x31
push dword [esi + 0x328]
call dword [sym.imp.USER32.dll_SendMessageA]
lea esi, [ebp - 0x2c]
lea edi, [ebp - 0x1c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x2c]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x14]
sub esi, dword [ebp - 0x1c]
add eax, 0xfffffffa
mov dword [ebp - 0x14], eax
sub eax, esi
sub eax, 0xa
mov dword [ebp - 0x1c], eax
push 0x821c
lea eax, [ebp - 8]
call fcn.00408a73
pop ecx
push 0
push ecx
mov ecx, esp
mov dword [ebp - 0xc], esp
push 0
mov dword [ecx], 0x82e
mov eax, dword [eax]
mov edi, 0x50000000
push edi
push eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], esp
push dword [ebx]
add eax, 0x330
push eax
mov dword [ebp - 0xc], eax
call fcn.00413eb2
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x41357e
push eax
call fcn.00401377
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.0040a898
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffffa
mov dword [ebp - 0x14], eax
sub eax, esi
sub eax, 0xa
mov dword [ebp - 0x1c], eax
push 0x821d
lea eax, [ebp - 0xc]
call fcn.00408a73
pop ecx
push 0
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push 0
mov dword [ecx], 0x855
mov eax, dword [eax]
push edi
push eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esp
push dword [ebx]
add eax, 0x32c
push eax
call fcn.00413eb2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4135ed
push eax
call fcn.00401377
mov eax, dword [ebp + 8]
push 1
push dword [ebp - 4]
add eax, 0x32c
push eax
call fcn.0040a898
mov eax, dword [ebp - 0x34]
sub eax, dword [ebp - 0x24]
push 0x8217
mov dword [ebp - 0x1c], eax
add eax, esi
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xc]
call fcn.00408a73
pop ecx
push 0
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push 0
mov dword [ecx], 0x835
mov eax, dword [eax]
push edi
push eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 8], esp
push dword [ebx]
add eax, 0x334
push eax
call fcn.00413eb2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x41365f
push eax
call fcn.00401377
mov eax, dword [ebp + 8]
push 1
push dword [ebp - 4]
add eax, 0x334
push eax
call fcn.0040a898
mov eax, dword [ebp - 0x14]
add eax, 6
mov dword [ebp - 0x1c], eax
add eax, esi
mov dword [ebp - 0x14], eax
push 0x8218
lea eax, [ebp - 0xc]
call fcn.00408a73
mov esi, dword [ebp + 8]
pop ecx
push 0
push ecx
mov ecx, esp
mov dword [ebp - 8], esp
push 0
mov dword [ecx], 0x836
mov eax, dword [eax]
push edi
push eax
push ecx
mov eax, esp
lea ecx, [ebp - 0x1c]
mov dword [ebp - 8], esp
mov dword [eax], ecx
push dword [ebx]
lea edi, [esi + 0x338]
push edi
call fcn.00413eb2
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e4154]
je 0x4136d2
push eax
call fcn.00401377
push 1
push dword [ebp - 4]
push edi
call fcn.0040a898
cmp dword [esi + 0x340], 0
jne 0x41372c
push dword [esi + 0x334]
call fcn.0041429a
test eax, eax
pop ecx
je 0x413708
push 0xc0c0c0
push 0
push 0x412
push eax
call fcn.00414aea
push dword [edi]
call fcn.0041429a
test eax, eax
pop ecx
je 0x413798
push 0xc0c0c0
push 0
push 0x415
push eax
call fcn.00414aea
jmp 0x413798
push 0
push dword [esi + 0x334]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [esi + 0x334]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push dword [edi]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4e4150]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x64]
push dword [eax + 4]
lea eax, [ebp - 4]
push 0x816d
push eax
call fcn.00405867
mov edi, dword [ebp - 4]
add esp, 0xc
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextA]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e4154]
je 0x413798
push eax
call fcn.00401377
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push ebx
call fcn.0040a8ef
xor ecx, ecx
mov eax, esi
call fcn.00412d5c
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
mov eax, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00414371
pop edi
pop esi
pop ebx
leave
ret 0x10