Function at 0x40a3f6
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x456220]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [edi + 0x10]
push ebx
xor ebx, ebx
sub ecx, ebx
mov eax, 0x3e9
push esi
mov dword [ebp - 0x18], 0x3f0
mov dword [ebp - 0x14], 0x3ec
mov dword [ebp - 0x10], 0x3ed
mov dword [ebp - 0xc], 0x3f1
mov dword [ebp - 8], 0x3ee
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], 0x3ea
je 0x40a5f2
dec ecx
je 0x40a520
dec ecx
jne 0x40a66d
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push eax
push dword [edi + 4]
call ebx
mov esi, eax
test esi, esi
je 0x40a4a0
lea eax, [ebp - 0x20]
push 0x27f9
push eax
call fcn.00403ac3
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40a483
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040117c
push 0x3ea
push dword [edi + 4]
call ebx
mov esi, eax
test esi, esi
je 0x40a4e9
lea eax, [ebp - 0x20]
push 0x27f8
push eax
call fcn.00403ac3
cmp dword [ebp - 8], 8
mov eax, dword [ebp - 0x1c]
pop ecx
pop ecx
jae 0x40a4cc
lea eax, [ebp - 0x1c]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 1
push esi
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 1
lea esi, [ebp - 0x20]
call fcn.0040117c
push 0x3ec
push dword [edi + 4]
call ebx
test eax, eax
je 0x40a500
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
push 0x3ed
push dword [edi + 4]
call ebx
test eax, eax
je 0x40a66d
push 0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
jmp 0x40a66d
mov dword [ebp - 0x40], ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
mov eax, dword [ebp - 0x40]
push dword [ebp + eax - 0x4c]
push dword [edi + 4]
call ebx
mov esi, eax
test esi, esi
je 0x40a56f
mov eax, dword [ebp - 0x40]
push dword [eax + 0x4577c0]
lea eax, [ebp - 0x3c]
push eax
call fcn.00403ac3
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
pop ecx
pop ecx
jae 0x40a55b
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 0
push 1
lea esi, [ebp - 0x3c]
call fcn.0040117c
add dword [ebp - 0x40], 4
cmp dword [ebp - 0x40], 8
jb 0x40a529
push 0x3eb
push dword [edi + 4]
call ebx
mov esi, eax
test esi, esi
je 0x40a5d2
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x48]
sub eax, 0x4e
push 0x44
mov dword [ebp - 0x48], eax
sub eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
xor esi, esi
push dword [ebp + esi*4 - 0x18]
push dword [edi + 4]
call ebx
test eax, eax
je 0x40a5ea
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc esi
cmp esi, 5
jb 0x40a5d4
jmp 0x40a66d
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push dword [ebp + ebx*4 - 0x18]
push dword [edi + 4]
call esi
test eax, eax
je 0x40a60e
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
inc ebx
cmp ebx, 5
jb 0x40a5f8
push 0x3eb
push dword [edi + 4]
call esi
mov esi, eax
test esi, esi
je 0x40a66d
lea eax, [ebp - 0x54]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x44]
push eax
push dword [edi + 4]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x48]
add eax, 0x4e
push 0x44
mov dword [ebp - 0x48], eax
sub eax, dword [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x4c]
sub eax, dword [ebp - 0x54]
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
push 0xfffffffffffffffe
push esi
call dword [sym.imp.USER32.dll_SetWindowPos]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043253e
leave
ret