Function at 0x40c130
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 8], 0
jne 0x40c155
push 0xe
push 0x20
push 0x4305c8
call fcn.0040b010
add esp, 0xc
or eax, 0xffffffff
jmp 0x40c3a9
mov dword [ebp - 0xc], 0x40000000
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov dword [ecx], 0
mov dword [ebp - 4], 0x28
mov edx, dword [ebp - 4]
mov dword [ebp - 8], edx
mov dword [ebp - 0x10], str.button
mov dword [ebp - 0x14], 0
jmp 0x40c18e
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp + 0x10]
jge 0x40c2f6
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + edx]
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x18]
sub edx, 1
mov dword [ebp - 0x18], edx
cmp dword [ebp - 0x18], 0x13
ja case.0x40c1c6.2
mov eax, dword [ebp - 0x18]
movzx ecx, byte [eax + 0x40c3cc]
jmp dword [ecx*4 + 0x40c3b0]
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x14]
fld qword [0x42d738]
fcomp qword [eax + edx + 8]
fnstsw ax
test ah, 5
jp 0x40c1ff
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
fld qword [edx + ecx + 8]
fadd qword [0x42d728]
fstp qword [ebp - 0x20]
jmp 0x40c208
fld qword [0x42d738]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
call fcn.0042b990
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x14]
fld qword [0x42d738]
fcomp qword [ecx + eax + 0x10]
fnstsw ax
test ah, 5
jp 0x40c245
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x14]
fld qword [eax + edx + 0x10]
fadd qword [0x42d728]
fstp qword [ebp - 0x28]
jmp 0x40c24e
fld qword [0x42d738]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.0042b990
mov dword [ebp - 4], eax
jmp 0x40c2f1
mov ecx, dword [ebp - 0xc]
or ecx, 0x800000
mov dword [ebp - 0xc], ecx
jmp 0x40c2f1
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax + edx + 8]
mov dword [ebp - 0x10], ecx
jmp 0x40c2f1
push 0x4305e8
push 0xa
push 0x33
push 0x4305f4
call fcn.0040b010
add esp, 0x10
or eax, 0xffffffff
jmp 0x40c3a9
mov edx, dword [ebp - 0x14]
imul edx, edx, 0x28
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp + 0x14]
mov edx, dword [eax + edx + 8]
mov dword [ecx], edx
jmp 0x40c2f1
mov eax, dword [ebp - 0x14]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + eax + 8]
mov dword [ecx + 0x14], eax
jmp 0x40c2f1
mov ecx, dword [ebp - 0x14]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx + ecx]
push eax
push 1
push 0x3c
push 0x43060c
call fcn.0040b010
add esp, 0x10
or eax, 0xffffffff
jmp 0x40c3a9
jmp 0x40c185
lea ecx, [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004130f0
add esp, 8
push 0
mov eax, dword [0x43efec]
push eax
mov eax, dword [ebp + 0xc]
sub eax, dword [0x43f028]
cdq
mov ecx, 0x18
idiv ecx
push eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 8]
push edx
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push str.BUTTON
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [ebp + 0xc]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0xc], 0
jne 0x40c36d
push 7
push 0x45
push 0x43062c
call fcn.0040b010
add esp, 0xc
or eax, 0xffffffff
jmp 0x40c3a9
push 5
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [ebp + 8], 0
je 0x40c3a7
mov edx, dword [ebp + 8]
cmp dword [edx], 0
jne 0x40c3a7
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040bd80
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret