Function at 0x40841d
Capabilities:
Hide graphical window

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x64
push ebx
push esi
push edi
push 1
push 0x401b04
mov eax, 0x374
lea esi, [esp + 0x54]
call fcn.0040df9a
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
xor ecx, ecx
push 0x3e9
push dword [ebp + 0xc]
mov eax, 0x4013c0
mov edi, ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x44], ecx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x34], ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x30], ecx
call esi
mov ebx, eax
mov dword [esp + 0x18], ebx
test ebx, ebx
jne 0x4084b5
call fcn.0040f196
mov edi, eax
mov eax, 0x385
mov dword [esp + 0x4c], edi
mov word [esp + 0x52], ax
jmp 0x40885a
and dword [esp + 0x4c], edi
push 0x450
push dword [ebp + 0xc]
mov eax, 0x385
mov word [esp + 0x58], ax
call esi
mov esi, eax
test esi, esi
jne 0x4084e1
call fcn.0040f196
mov edi, eax
mov eax, 0x388
jmp 0x4084a7
and dword [esp + 0x4c], edi
mov eax, 0x388
mov word [esp + 0x50], ax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x4c]
mov dword [esp + 0x1c], ecx
test ecx, ecx
je 0x40862d
mov eax, dword [ecx + 0x18]
test eax, eax
je 0x408566
xor edx, edx
inc edx
cmp dword [ecx + 0x30], edx
je 0x408516
cmp dword [ecx + 0x30], 2
jne 0x408528
inc dword [esp + 0x10]
cmp dword [ecx + 0x30], 2
mov dword [esp + 0x20], edx
jne 0x408528
inc dword [esp + 0x14]
test eax, eax
je 0x408566
mov ebx, dword [ecx + 0x50]
inc dword [esp + 0xc]
lea edi, [esp + 0x24]
call fcn.0040fa38
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x3a5
test edi, edi
js 0x4084ab
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x50], ax
mov eax, dword [ecx + 0x50]
mov dword [esp + 0x2c], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x28], eax
mov ecx, dword [ecx + 0x54]
mov dword [esp + 0x1c], ecx
test ecx, ecx
jne 0x408501
mov eax, dword [ebp + 8]
cmp dword [esp + 0x20], ecx
je 0x408625
mov ebx, dword [esp + 0x10]
mov dword [eax + 0x90], 2
cmp dword [esp + 0x14], ebx
jne 0x408595
push ecx
jmp 0x408597
push 1
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_EnableWindow]
lea eax, [esp + 0x34]
cmp ebx, 1
jne 0x40860b
push 0x78
push dword [0x4133b4]
push eax
call fcn.00410606
mov edi, eax
mov eax, 0x3c6
mov dword [esp + 0x4c], edi
test edi, edi
js 0x4084ab
mov ebx, dword [esp + 0x34]
push 0x3e9
push dword [ebp + 0xc]
mov word [esp + 0x58], ax
call fcn.00410751
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x3cc
test edi, edi
js 0x4084ab
push 0
push esi
mov word [esp + 0x58], ax
call dword [sym.imp.USER32.dll_ShowWindow]
mov edi, dword [esp + 0x4c]
jmp 0x40885a
push 0x48b
push dword [0x4133b4]
push eax
call fcn.00410606
mov edi, eax
mov eax, 0x3ca
jmp 0x4085bf
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
xor ecx, ecx
inc ecx
mov dword [eax + 0x90], ecx
cmp dword [esp + 0xc], ecx
jne 0x40877f
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esp + 0x34]
push edi
call fcn.0040fad3
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x3da
test edi, edi
js 0x4084ab
mov word [esp + 0x50], ax
mov eax, dword [esp + 0x30]
sub eax, 3
je 0x408707
sub eax, 3
je 0x408707
dec eax
je 0x4086cd
dec eax
je 0x408707
push 0x4a5
push dword [0x4133b4]
lea eax, [esp + 0x3c]
push eax
call fcn.00410606
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x3f6
test edi, edi
js 0x4084ab
push 1
push esi
mov word [esp + 0x58], ax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
call esi
push 0
jmp 0x40874a
push 0x4a5
push dword [0x4133b4]
lea eax, [esp + 0x3c]
push eax
call fcn.00410606
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x3ec
test edi, edi
js 0x4084ab
push 1
push esi
mov word [esp + 0x58], ax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
jmp 0x40873f
push 0x4a5
push dword [0x4133b4]
lea eax, [esp + 0x3c]
push eax
call fcn.00410606
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x3e2
test edi, edi
js 0x4084ab
push 1
push esi
mov word [esp + 0x58], ax
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push esi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
call esi
push 1
push ebx
call esi
push 0x48c
push dword [0x4133b4]
lea eax, [esp + 0x48]
push eax
call fcn.00410606
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x3ff
test edi, edi
js 0x4084ab
mov word [esp + 0x50], ax
jmp 0x408808
push 0x48a
push dword [0x4133b4]
lea eax, [esp + 0x3c]
push eax
call fcn.00410606
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x403
test edi, edi
js 0x4084ab
push 0x48d
push dword [0x4133b4]
mov word [esp + 0x58], ax
lea eax, [esp + 0x48]
push eax
call fcn.00410606
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x404
test edi, edi
js 0x4084ab
push 1
push esi
mov word [esp + 0x58], ax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 0
jbe 0x4087f8
push 1
push esi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
call esi
push 1
jmp 0x408805
push 0
push esi
mov esi, dword [sym.imp.USER32.dll_EnableWindow]
call esi
push 0
push ebx
call esi
mov ebx, dword [esp + 0x34]
push 0x3e9
push dword [ebp + 0xc]
call fcn.00410751
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x417
test edi, edi
js 0x4084ab
mov ebx, dword [esp + 0x40]
push 0x450
push dword [ebp + 0xc]
mov word [esp + 0x58], ax
call fcn.00410751
mov edi, eax
mov dword [esp + 0x4c], edi
mov eax, 0x418
test edi, edi
js 0x4084ab
mov word [esp + 0x50], ax
lea esi, [esp + 0x40]
call fcn.0040fca0
lea esi, [esp + 0x34]
call fcn.0040fca0
lea eax, [esp + 0x4c]
call fcn.0040e073
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8