Function at 0x40189b
Capabilities:
Execute command

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov dword [esp], 0x40635c
call sym._system
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
fldz
fstp dword [ebp - 0x1c]
fldz
fstp dword [ebp - 0x20]
fldz
fstp dword [ebp - 0x24]
fld dword [ebp - 0x1c]
fadd dword [ebp - 0x20]
fadd dword [ebp - 0x24]
fstp dword [ebp - 0x28]
mov byte [ebp - 0x15], 1
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], 0
fld dword [ebp - 0x28]
fstp dword [esp]
call sym._frigMenu
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
cmp eax, 1
je 0x401922
cmp eax, 2
je 0x401ad7
test eax, eax
je 0x401c9b
jmp 0x401ca1
fld dword [ebp - 0x28]
fstp dword [esp]
call sym._frigMenuRetirar
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
cmp eax, 1
je 0x401961
cmp eax, 1
jg 0x40194a
test eax, eax
je 0x401ad1
jmp 0x401ac3
cmp eax, 2
je 0x4019dc
cmp eax, 3
je 0x401a54
jmp 0x401ac3
cmp dword [ebp - 0xc], 0
jg 0x401978
mov dword [esp], str.No_existe_gua_em_stock
call sym._puts
jmp 0x401ad2
mov dword [esp], str.Escreva_quanto_quer_retirar:
call sym._printf
call sym._intValidate
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0xc]
jle 0x4019ac
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.No_pode_retirar_mais_guas_do_que__d_n
call sym._printf
jmp 0x401ad2
cmp dword [ebp - 0x38], 0
jg 0x4019c3
mov dword [esp], str.No_pode_retirar_0_ou_menos
call sym._puts
jmp 0x401ad2
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fld qword [0x406650]
fmulp st(1)
fstp dword [ebp - 0x1c]
jmp 0x401ad2
cmp dword [ebp - 0x10], 0
jg 0x4019f3
mov dword [esp], str.No_existe_leite_em_stock
call sym._puts
jmp 0x401ad2
mov dword [esp], str.Escreva_quanto_quer_retirar:
call sym._printf
call sym._intValidate
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x10]
jle 0x401a27
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.No_pode_retirar_mais_leite_do_que__d_n
call sym._printf
jmp 0x401ad2
cmp dword [ebp - 0x38], 0
jg 0x401a3e
mov dword [esp], str.No_pode_retirar_0_ou_menos
call sym._puts
jmp 0x401ad2
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fld qword [0x406658]
fmulp st(1)
fstp dword [ebp - 0x20]
jmp 0x401ad2
cmp dword [ebp - 0x14], 0
jg 0x401a68
mov dword [esp], str.No_existe_sumo_em_stock
call sym._puts
jmp 0x401ad2
mov dword [esp], str.Escreva_quanto_quer_retirar:
call sym._printf
call sym._intValidate
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x38]
cmp eax, dword [ebp - 0x14]
jle 0x401a99
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.No_pode_retirar_mais_sumo_do_que__d_n
call sym._printf
jmp 0x401ad2
cmp dword [ebp - 0x38], 0
jg 0x401aad
mov dword [esp], str.No_pode_retirar_0_ou_menos
call sym._puts
jmp 0x401ad2
mov eax, dword [ebp - 0x38]
sub dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fld qword [0x406660]
fmulp st(1)
fstp dword [ebp - 0x24]
jmp 0x401ad2
mov dword [esp], str.INVALID_INPUT
call sym._puts
jmp 0x401ad2
nop
jmp 0x401cae
fld dword [ebp - 0x28]
fstp dword [esp]
call sym._frigMenuColocar
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
cmp eax, 1
je 0x401b16
cmp eax, 1
jg 0x401aff
test eax, eax
je 0x401c98
jmp 0x401c8a
cmp eax, 2
je 0x401b96
cmp eax, 3
je 0x401c16
jmp 0x401c8a
cmp dword [ebp - 0xc], 0xe
jle 0x401b2d
mov dword [esp], str.No_pode_colocar_mais_gua
call sym._puts
jmp 0x401c99
mov dword [esp], str.Escreva_quanto_quer_colocar:
call sym._printf
call sym._intValidate
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0xc]
add eax, edx
cmp eax, 0xf
jle 0x401b66
mov eax, dword [ebp - 0xc]
mov dword [esp + 4], eax
mov dword [esp], str.No_pode_colocar_mais_do_que_15_guas_no_frigorifico__j_existem__d_guas_n
call sym._printf
jmp 0x401c99
cmp dword [ebp - 0x38], 0
jg 0x401b7d
mov dword [esp], str.No_pode_colocar_0_ou_menos
call sym._puts
jmp 0x401c99
mov eax, dword [ebp - 0x38]
add dword [ebp - 0xc], eax
fild dword [ebp - 0xc]
fld qword [0x406650]
fmulp st(1)
fstp dword [ebp - 0x1c]
jmp 0x401c99
cmp dword [ebp - 0x10], 0xe
jle 0x401bad
mov dword [esp], str.No_pode_colocar_mais_leite
call sym._puts
jmp 0x401c99
mov dword [esp], str.Escreva_quanto_quer_colocar:
call sym._printf
call sym._intValidate
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x10]
add eax, edx
cmp eax, 0xf
jle 0x401be6
mov eax, dword [ebp - 0x10]
mov dword [esp + 4], eax
mov dword [esp], str.No_pode_colocar_mais_do_que_15_leite_no_frigorifico__j_existem__d_leite_n
call sym._printf
jmp 0x401c99
cmp dword [ebp - 0x38], 0
jg 0x401bfd
mov dword [esp], str.No_pode_colocar_0_ou_menos
call sym._puts
jmp 0x401c99
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x10], eax
fild dword [ebp - 0x10]
fld qword [0x406658]
fmulp st(1)
fstp dword [ebp - 0x20]
jmp 0x401c99
cmp dword [ebp - 0x14], 0xe
jle 0x401c2a
mov dword [esp], str.No_pode_colocar_mais_sumo
call sym._puts
jmp 0x401c99
mov dword [esp], str.Escreva_quanto_quer_colocar:
call sym._printf
call sym._intValidate
mov dword [ebp - 0x38], eax
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x14]
add eax, edx
cmp eax, 0xf
jle 0x401c60
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov dword [esp], str.No_pode_colocar_mais_do_que_15_sumo_no_frigorifico__j_existem__d_sumos_n
call sym._printf
jmp 0x401c99
cmp dword [ebp - 0x38], 0
jg 0x401c74
mov dword [esp], str.No_pode_colocar_0_ou_menos
call sym._puts
jmp 0x401c99
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x14], eax
fild dword [ebp - 0x14]
fld qword [0x406660]
fmulp st(1)
fstp dword [ebp - 0x24]
jmp 0x401c99
mov dword [esp], str.INVALID_INPUT
call sym._puts
jmp 0x401c99
nop
jmp 0x401cae
mov byte [ebp - 0x15], 0
jmp 0x401cae
mov dword [esp], str.INVALID_INPUT
call sym._puts
nop
cmp byte [ebp - 0x15], 0
jne 0x4018f6
nop
leave
ret