Function at 0x413da8
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 0x414148
push dword [esi + 0x330]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x414148
push 0x7dd9
lea eax, [ebp - 4]
call fcn.00409034
mov eax, dword [eax]
pop ecx
push 0
mov edx, eax
mov ecx, esi
call fcn.00415112
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x413e01
push eax
call fcn.004013aa
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.00409034
pop ecx
push dword [eax]
push dword [esi + 0x328]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [ebp - 4]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x413e6d
push eax
call fcn.004013aa
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.0040afde
push 0
push 0
push 0x31
push dword [esi + 0x328]
call dword [sym.imp.USER32.dll_SendMessageW]
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.00409034
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.004147d8
mov eax, dword [ebp - 8]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x413f16
push eax
call fcn.004013aa
push 1
push dword [ebp - 4]
push dword [ebp - 0xc]
call fcn.0040afa5
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.00409034
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.004147d8
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x413f85
push eax
call fcn.004013aa
mov eax, dword [ebp + 8]
push 1
push dword [ebp - 4]
add eax, 0x32c
push eax
call fcn.0040afa5
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.00409034
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.004147d8
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x413ff7
push eax
call fcn.004013aa
mov eax, dword [ebp + 8]
push 1
push dword [ebp - 4]
add eax, 0x334
push eax
call fcn.0040afa5
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.00409034
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.004147d8
mov eax, dword [ebp - 0xc]
add eax, 0xfffffff4
cmp eax, dword [0x4e9154]
je 0x41406a
push eax
call fcn.004013aa
push 1
push dword [ebp - 4]
push edi
call fcn.0040afa5
cmp dword [esi + 0x340], 0
jne 0x4140c4
push dword [esi + 0x334]
call fcn.00414b6e
test eax, eax
pop ecx
je 0x4140a0
push 0xc0c0c0
push 0
push 0x412
push eax
call fcn.0041549a
push dword [edi]
call fcn.00414b6e
test eax, eax
pop ecx
je 0x414130
push 0xc0c0c0
push 0
push 0x415
push eax
call fcn.0041549a
jmp 0x414130
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 [0x4e9150]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x64]
push dword [eax + 4]
lea eax, [ebp - 4]
push 0x816d
push eax
call fcn.00405bca
mov edi, dword [ebp - 4]
add esp, 0xc
push edi
push dword [ebx]
call dword [sym.imp.USER32.dll_SetWindowTextW]
lea eax, [edi - 0xc]
cmp eax, dword [0x4e9154]
je 0x414130
push eax
call fcn.004013aa
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push ebx
call fcn.0040affc
xor ecx, ecx
mov eax, esi
call fcn.004136f1
mov esi, dword [ebp + 8]
push dword [ebp + 0x14]
mov eax, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00423f0c
pop edi
pop esi
pop ebx
leave
ret 0x10