Function at 0x409890
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ad962
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x4c8bb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x80], 0
fld dword [0x4b1b38]
fstp dword [ebp - 0x3c]
fld dword [0x4b1b38]
fstp dword [ebp - 0x5c]
fld dword [0x4b1b38]
fstp dword [ebp - 0x70]
fld dword [0x4b1c60]
fstp dword [ebp - 0x24]
fld dword [0x4b1c60]
fstp dword [ebp - 0x54]
fld dword [0x4b1c60]
fstp dword [ebp - 0x88]
fld dword [0x4c959c]
fld dword [ebp + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x409919
fld dword [0x4c959c]
fdiv qword [0x4b1b20]
fstp dword [ebp + 8]
fld dword [0x4c95ac]
fld dword [ebp + 8]
fcompp
fnstsw ax
test ah, 1
jne 0x40993a
fld dword [0x4c95ac]
fdiv qword [0x4b1c10]
fstp dword [ebp + 8]
push 0x3e8
push 0x2710
lea ecx, [ebp - 0x50]
call fcn.00406830
mov dword [ebp - 4], 0
push 0x4b2318
push str.stock.res
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 8
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x409fb3
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x88]
push ecx
lea edx, [ebp - 0x70]
push edx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x3c]
push eax
push 0x4b2328
call fcn.00409770
add esp, 0x20
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x4099c8
push 0x4b2334
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
fld dword [ebp - 0x70]
fstp dword [ebp - 0x94]
fld dword [ebp - 0x88]
fstp dword [ebp - 0x90]
fld dword [0x4b1b38]
fstp dword [ebp - 0x3c]
fld dword [0x4b1b38]
fstp dword [ebp - 0x5c]
fld dword [0x4b1b38]
fstp dword [ebp - 0x70]
fld dword [0x4b1c60]
fstp dword [ebp - 0x24]
fld dword [0x4b1c60]
fstp dword [ebp - 0x54]
fld dword [0x4b1c60]
fstp dword [ebp - 0x88]
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_rewind]
add esp, 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x6c]
push ecx
lea edx, [ebp - 0x64]
push edx
push 0x4b235c
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_fscanf]
add esp, 0x18
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x40]
push ecx
push 0x4b2368
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_fscanf]
add esp, 0x18
fld dword [ebp - 0x40]
fcomp qword [0x4b1c70]
fnstsw ax
test ah, 5
jp 0x409ae2
fld dword [ebp - 0x40]
fstp dword [ebp - 0x84]
fld dword [ebp - 0x18]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x28]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x84]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x84]
fld dword [ebp - 0x74]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x14]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x14]
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x20]
push ecx
lea edx, [ebp - 0x60]
push edx
push ecx
fld dword [ebp - 0x14]
fstp dword [esp]
push ecx
fld dword [ebp - 0x74]
fstp dword [esp]
push ecx
fld dword [ebp - 0x84]
fstp dword [esp]
call fcn.0040d950
add esp, 0x18
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x8c]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x2c]
push eax
push 0x4b2374
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_fscanf]
add esp, 0x18
cmp eax, 4
jne 0x409cea
fld dword [ebp - 0x2c]
fcomp qword [0x4b1c70]
fnstsw ax
test ah, 5
jp 0x409b8e
fld dword [ebp - 0x2c]
fstp dword [ebp - 0x84]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x8c]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x84]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x84]
fld dword [ebp - 0x74]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x14]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x14]
lea edx, [ebp - 0x78]
push edx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x58]
push ecx
push ecx
fld dword [ebp - 0x14]
fstp dword [esp]
push ecx
fld dword [ebp - 0x74]
fstp dword [esp]
push ecx
fld dword [ebp - 0x84]
fstp dword [esp]
call fcn.0040d950
add esp, 0x18
fld dword [ebp - 0x40]
fcomp qword [0x4b1c70]
fnstsw ax
test ah, 5
jp 0x409cbe
fld dword [ebp - 0x2c]
fcomp qword [0x4b1c70]
fnstsw ax
test ah, 5
jp 0x409cbe
fld dword [ebp - 0x60]
fld dword [ebp - 0x3c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x409bcb
fld dword [ebp - 0x60]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x20]
fld dword [ebp - 0x5c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x409be0
fld dword [ebp - 0x20]
fstp dword [ebp - 0x5c]
fld dword [ebp - 0x38]
fld dword [ebp - 0x70]
fcompp
fnstsw ax
test ah, 0x41
jne 0x409bf5
fld dword [ebp - 0x38]
fstp dword [ebp - 0x70]
fld dword [ebp - 0x60]
fld dword [ebp - 0x24]
fcompp
fnstsw ax
test ah, 5
jp 0x409c0a
fld dword [ebp - 0x60]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x20]
fld dword [ebp - 0x54]
fcompp
fnstsw ax
test ah, 5
jp 0x409c1f
fld dword [ebp - 0x20]
fstp dword [ebp - 0x54]
fld dword [ebp - 0x38]
fld dword [ebp - 0x88]
fcompp
fnstsw ax
test ah, 5
jp 0x409c3a
fld dword [ebp - 0x38]
fstp dword [ebp - 0x88]
fld dword [ebp - 0x58]
fld dword [ebp - 0x3c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x409c4f
fld dword [ebp - 0x58]
fstp dword [ebp - 0x3c]
fld dword [ebp - 0x10]
fld dword [ebp - 0x5c]
fcompp
fnstsw ax
test ah, 0x41
jne 0x409c64
fld dword [ebp - 0x10]
fstp dword [ebp - 0x5c]
fld dword [ebp - 0x78]
fld dword [ebp - 0x70]
fcompp
fnstsw ax
test ah, 0x41
jne 0x409c79
fld dword [ebp - 0x78]
fstp dword [ebp - 0x70]
fld dword [ebp - 0x58]
fld dword [ebp - 0x24]
fcompp
fnstsw ax
test ah, 5
jp 0x409c8e
fld dword [ebp - 0x58]
fstp dword [ebp - 0x24]
fld dword [ebp - 0x10]
fld dword [ebp - 0x54]
fcompp
fnstsw ax
test ah, 5
jp 0x409ca3
fld dword [ebp - 0x10]
fstp dword [ebp - 0x54]
fld dword [ebp - 0x78]
fld dword [ebp - 0x88]
fcompp
fnstsw ax
test ah, 5
jp 0x409cbe
fld dword [ebp - 0x78]
fstp dword [ebp - 0x88]
fld dword [ebp - 0x2c]
fstp dword [ebp - 0x40]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x8c]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x58]
fstp dword [ebp - 0x60]
fld dword [ebp - 0x10]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x78]
fstp dword [ebp - 0x38]
jmp 0x409ae2
push 0
push ecx
fld dword [ebp - 0x70]
fstp dword [esp]
push ecx
fld dword [ebp + 8]
fstp dword [esp]
push ecx
fld dword [ebp - 0x54]
fstp dword [esp]
push ecx
fld dword [ebp - 0x24]
fstp dword [esp]
push ecx
fld dword [ebp - 0x5c]
fstp dword [esp]
push ecx
fld dword [ebp - 0x3c]
fstp dword [esp]
mov ecx, 0x4c95c0
call fcn.0043f040
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x409d49
push 0x4b2380
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_rewind]
add esp, 4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x6c]
push edx
lea eax, [ebp - 0x64]
push eax
push 0x4b23a8
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_fscanf]
add esp, 0x18
lea edx, [ebp - 0x7c]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x40]
push edx
push 0x4b23b4
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.MSVCR100.dll_fscanf]
add esp, 0x18
fld dword [ebp - 0x40]
fcomp qword [0x4b1c70]
fnstsw ax
test ah, 5
jp 0x409e15
fld dword [ebp - 0x40]
fstp dword [ebp - 0x84]
fld dword [ebp - 0x18]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x28]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x84]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x84]
fld dword [ebp - 0x74]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x14]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x14]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp - 0x60]
push eax
push ecx
fld dword [ebp - 0x14]
fstp dword [esp]
push ecx
fld dword [ebp - 0x74]
fstp dword [esp]
push ecx
fld dword [ebp - 0x84]
fstp dword [esp]
call fcn.0040d950
add esp, 0x18
lea ecx, [ebp - 0x7c]
push ecx
lea edx, [ebp - 0x8c]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0x4b23c0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.MSVCR100.dll_fscanf]
add esp, 0x18
cmp eax, 4
jne 0x409f41
fld dword [ebp - 0x2c]
fcomp qword [0x4b1c70]
fnstsw ax
test ah, 5
jp 0x409ec1
fld dword [ebp - 0x2c]
fstp dword [ebp - 0x84]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x8c]
fstp dword [ebp - 0x14]
fld dword [ebp - 0x84]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x84]
fld dword [ebp - 0x74]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x74]
fld dword [ebp - 0x14]
fdiv dword [0x4c95b0]
fstp dword [ebp - 0x14]
lea eax, [ebp - 0x78]
push eax
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x58]
push edx
push ecx
fld dword [ebp - 0x14]
fstp dword [esp]
push ecx
fld dword [ebp - 0x74]
fstp dword [esp]
push ecx
fld dword [ebp - 0x84]
fstp dword [esp]
call fcn.0040d950
add esp, 0x18
fld dword [ebp - 0x40]
fcomp qword [0x4b1c70]
fnstsw ax
test ah, 5
jp 0x409f15
fld dword [ebp - 0x2c]
fcomp qword [0x4b1c70]
fnstsw ax
test ah, 5
jp 0x409f15
push ecx
fld dword [ebp - 0x78]
fstp dword [esp]
push ecx
fld dword [ebp - 0x10]
fstp dword [esp]
push ecx
fld dword [ebp - 0x58]
fstp dword [esp]
push ecx
fld dword [ebp - 0x38]
fstp dword [esp]
push ecx
fld dword [ebp - 0x20]
fstp dword [esp]
push ecx
fld dword [ebp - 0x60]
fstp dword [esp]
mov ecx, 0x4c95c0
call fcn.0043e890
fld dword [ebp - 0x2c]
fstp dword [ebp - 0x40]
fld dword [ebp - 0x34]
fstp dword [ebp - 0x18]
fld dword [ebp - 0x8c]
fstp dword [ebp - 0x28]
fld dword [ebp - 0x58]
fstp dword [ebp - 0x60]
fld dword [ebp - 0x10]
fstp dword [ebp - 0x20]
fld dword [ebp - 0x78]
fstp dword [ebp - 0x38]
jmp 0x409e15
push ecx
fld dword [ebp - 0x90]
fstp dword [esp]
push ecx
fld dword [ebp - 0x94]
fstp dword [esp]
mov ecx, 0x4c95c0
call fcn.0040bcf0
push ecx
fld dword [ebp + 0x10]
fstp dword [esp]
push ecx
fld dword [ebp + 0xc]
fstp dword [esp]
mov eax, dword [ebp + 0x14]
push eax
call fcn.00408380
add esp, 0xc
mov dword [ebp - 0x80], eax
cmp dword [ebp - 0x80], 0
je 0x409fa2
push 0x4b23cc
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
push 0x4c9670
mov ecx, 0x4c95c0
call fcn.0043e860
jmp 0x409fd3
push 0x4b23f4
call dword [sym.imp.MSVCR100.dll___iob_func]
add eax, 0x20
push eax
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
push 0xffffffffffffffff
call dword [sym.imp.MSVCR100.dll_exit]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call fcn.004067a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret