Function at 0x40ca68
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff1c
mov dword [ebp - 4], 1
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0042284c
add esp, 0x14
test eax, eax
je 0x40ca9c
mov eax, dword [ebp - 4]
jmp 0x40cd6c
mov edx, dword [ebp + 0xc]
sub edx, 0x110
je 0x40caaf
dec edx
je 0x40cad6
jmp 0x40cd64
cmp dword [0x454d78], 0
jne 0x40cd69
push 0
push 0x1774
push dword [ebp + 8]
call sub.USER32.DLL_GetDlgItem
push eax
call sub.USER32.DLL_ShowWindow
jmp 0x40cd69
mov ecx, dword [ebp + 0x10]
sub ecx, 2
je 0x40cd2b
sub ecx, 4
jne 0x40cd5d
cmp dword [0x454d78], 0
je 0x40cb30
mov eax, dword [0x454d84]
inc eax
push eax
push 0x459de8
lea edx, [ebp - 0xe4]
push edx
call fcn.00447d04
add esp, 0xc
lea ecx, [ebp - 0xe4]
push ecx
push 0x1773
push dword [ebp + 8]
call sub.USER32.DLL_SetDlgItemTextA
push dword [ebp + 8]
call sub.USER32.DLL_UpdateWindow
jmp 0x40cd69
mov eax, dword [0x454d80]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40cb45
mov dword [ebp - 0xc], 1
mov edx, dword [0x454d84]
mov dword [ebp - 8], edx
cmp dword [0x454d7c], 0
je 0x40cb88
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
mov ecx, 0x2710
cdq
idiv ecx
inc eax
mov dword [ebp - 0x10], eax
imul eax, dword [ebp - 8], 0x64
cdq
idiv dword [ebp - 0xc]
push eax
push 0x459dee
lea ecx, [ebp - 0xe4]
push ecx
call fcn.00447d04
add esp, 0xc
jmp 0x40cb9f
mov eax, dword [ebp - 0xc]
sub eax, dword [ebp - 8]
add eax, eax
lea eax, [eax + eax*4]
mov ecx, 0x64
cdq
idiv ecx
inc eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0x1388
jl 0x40cbb1
cmp dword [0x454d7c], 0
je 0x40cbd0
imul eax, dword [ebp - 8], 0x64
cdq
idiv dword [ebp - 0xc]
push eax
push 0x459df3
lea ecx, [ebp - 0xe4]
push ecx
call fcn.00447d04
add esp, 0xc
jmp 0x40cc0c
imul eax, dword [ebp - 8], 0x3e8
cdq
idiv dword [ebp - 0xc]
mov ecx, 0xa
cdq
idiv ecx
push edx
imul eax, dword [ebp - 8], 0x3e8
cdq
idiv dword [ebp - 0xc]
mov ecx, 0xa
cdq
idiv ecx
push eax
push 0x459df8
lea eax, [ebp - 0xe4]
push eax
call fcn.00447d04
add esp, 0x10
cmp dword [ebp - 0x10], 0xa
jle 0x40cd0d
mov eax, dword [ebp - 0x10]
mov ecx, 0xe10
cdq
idiv ecx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov ecx, 0xe10
cdq
idiv ecx
mov eax, edx
mov ecx, 0x3c
cdq
idiv ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x10]
mov ecx, 0x3c
cdq
idiv ecx
mov dword [ebp - 0x1c], edx
push 0x459e02
lea eax, [ebp - 0xe4]
push eax
call fcn.00444280
add esp, 8
cmp dword [ebp - 0x14], 0
jne 0x40cc97
cmp dword [ebp - 0x18], 0
jne 0x40cc97
push 0x459e15
push dword [ebp - 0x1c]
push 0x459e07
lea edx, [ebp - 0xe4]
push edx
call fcn.0044438c
pop ecx
lea ecx, [ebp - 0xe4]
add eax, ecx
push eax
call fcn.00447d04
add esp, 0x10
jmp 0x40cd0d
cmp dword [ebp - 0x14], 0
jne 0x40ccd2
push 0x459e35
push dword [ebp - 0x1c]
push 0x459e30
push dword [ebp - 0x18]
push 0x459e1a
lea eax, [ebp - 0xe4]
push eax
call fcn.0044438c
pop ecx
lea edx, [ebp - 0xe4]
add eax, edx
push eax
call fcn.00447d04
add esp, 0x18
jmp 0x40cd0d
push 0x459e60
push dword [ebp - 0x1c]
push 0x459e5b
push dword [ebp - 0x18]
push 0x459e56
push dword [ebp - 0x14]
push 0x459e3a
lea ecx, [ebp - 0xe4]
push ecx
call fcn.0044438c
pop ecx
lea edx, [ebp - 0xe4]
add eax, edx
push eax
call fcn.00447d04
add esp, 0x20
lea eax, [ebp - 0xe4]
push eax
push 0x1773
push dword [ebp + 8]
call sub.USER32.DLL_SetDlgItemTextA
push dword [ebp + 8]
call sub.USER32.DLL_UpdateWindow
jmp 0x40cd69
push 0x459e65
push 0x14
push dword [ebp + 8]
call fcn.00411b5c
add esp, 0xc
cmp eax, 7
je 0x40cd69
push 0
push 2
push dword [ebp + 8]
call fcn.0041d6b0
add esp, 0xc
mov dword [0x454d70], 1
jmp 0x40cd69
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x40cd69
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10