Function at 0x40c070
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.00420840
add esp, 0x14
test eax, eax
je 0x40c0a4
mov eax, dword [ebp - 4]
jmp 0x40c374
mov edx, dword [ebp + 0xc]
sub edx, 0x110
je 0x40c0b7
dec edx
je 0x40c0de
jmp 0x40c36c
cmp dword [0x451c9c], 0
jne 0x40c371
push 0
push 0x1774
push dword [ebp + 8]
call sub.USER32.DLL_GetDlgItem
push eax
call sub.USER32.DLL_ShowWindow
jmp 0x40c371
mov ecx, dword [ebp + 0x10]
sub ecx, 2
je 0x40c333
sub ecx, 4
jne 0x40c365
cmp dword [0x451c9c], 0
je 0x40c138
mov eax, dword [0x451ca8]
inc eax
push eax
push 0x456be9
lea edx, [ebp - 0xe4]
push edx
call fcn.00444f70
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 0x40c371
mov eax, dword [0x451ca4]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40c14d
mov dword [ebp - 0xc], 1
mov edx, dword [0x451ca8]
mov dword [ebp - 8], edx
cmp dword [0x451ca0], 0
je 0x40c190
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 0x456bef
lea ecx, [ebp - 0xe4]
push ecx
call fcn.00444f70
add esp, 0xc
jmp 0x40c1a7
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 0x40c1b9
cmp dword [0x451ca0], 0
je 0x40c1d8
imul eax, dword [ebp - 8], 0x64
cdq
idiv dword [ebp - 0xc]
push eax
push 0x456bf4
lea ecx, [ebp - 0xe4]
push ecx
call fcn.00444f70
add esp, 0xc
jmp 0x40c214
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 0x456bf9
lea eax, [ebp - 0xe4]
push eax
call fcn.00444f70
add esp, 0x10
cmp dword [ebp - 0x10], 0xa
jle 0x40c315
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 0x456c03
lea eax, [ebp - 0xe4]
push eax
call fcn.004414ec
add esp, 8
cmp dword [ebp - 0x14], 0
jne 0x40c29f
cmp dword [ebp - 0x18], 0
jne 0x40c29f
push 0x456c16
push dword [ebp - 0x1c]
push 0x456c08
lea edx, [ebp - 0xe4]
push edx
call fcn.004415f8
pop ecx
lea ecx, [ebp - 0xe4]
add eax, ecx
push eax
call fcn.00444f70
add esp, 0x10
jmp 0x40c315
cmp dword [ebp - 0x14], 0
jne 0x40c2da
push 0x456c36
push dword [ebp - 0x1c]
push 0x456c31
push dword [ebp - 0x18]
push 0x456c1b
lea eax, [ebp - 0xe4]
push eax
call fcn.004415f8
pop ecx
lea edx, [ebp - 0xe4]
add eax, edx
push eax
call fcn.00444f70
add esp, 0x18
jmp 0x40c315
push 0x456c61
push dword [ebp - 0x1c]
push 0x456c5c
push dword [ebp - 0x18]
push 0x456c57
push dword [ebp - 0x14]
push 0x456c3b
lea ecx, [ebp - 0xe4]
push ecx
call fcn.004415f8
pop ecx
lea edx, [ebp - 0xe4]
add eax, edx
push eax
call fcn.00444f70
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 0x40c371
push 0x456c66
push 0x14
push dword [ebp + 8]
call fcn.0041124c
add esp, 0xc
cmp eax, 7
je 0x40c371
push 0
push 2
push dword [ebp + 8]
call fcn.0041ca68
add esp, 0xc
mov dword [0x451c94], 1
jmp 0x40c371
xor ecx, ecx
mov dword [ebp - 4], ecx
jmp 0x40c371
xor eax, eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 0x10