Function at 0x40134c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
push esi
push ebx
sub esp, 0x88
call sym.___main
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x404024
mov dword [esp], str.p329.txt
call sym._freopen
mov dword [esp + 4], 0x405020
mov dword [esp], 0x40402f
call sym._scanf
mov dword [esp + 0x1c], 0
jmp 0x4013ba
mov eax, dword [esp + 0x1c]
shl eax, 3
add eax, 0x405040
mov dword [esp + 4], eax
mov dword [esp], 0x404032
call sym._scanf
inc dword [esp + 0x1c]
mov eax, dword [0x405020]
cmp dword [esp + 0x1c], eax
setle al
test al, al
jne 0x40139a
mov dword [esp + 0x1c], 0
jmp 0x4013f4
mov eax, dword [esp + 0x1c]
shl eax, 3
add eax, 0x405360
mov dword [esp + 4], eax
mov dword [esp], 0x404032
call sym._scanf
inc dword [esp + 0x1c]
mov eax, dword [0x405020]
cmp dword [esp + 0x1c], eax
setle al
test al, al
jne 0x4013d4
mov dword [esp + 0x1c], 0
jmp 0x4014ff
mov dword [esp + 0x20], 0
jmp 0x4014eb
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea eax, [edx + eax]
mov dword [esp + 0x2c], eax
mov eax, 0
mov edx, 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], 0
jmp 0x40149d
mov eax, 0
mov edx, 0x3ff00000
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], 1
jmp 0x40147e
mov eax, dword [esp + 0x24]
fld qword [eax*8 + 0x405040]
fld qword [esp + 0x30]
fmulp st(1)
fstp qword [esp + 0x30]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x2c]
setle al
test al, al
jne 0x401465
fld qword [esp + 0x38]
fadd qword [esp + 0x30]
fstp qword [esp + 0x38]
inc dword [esp + 0x24]
mov eax, dword [0x405020]
cmp dword [esp + 0x24], eax
setle al
test al, al
jne 0x401449
mov eax, dword [esp + 0x1c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x20]
lea ecx, [eax + 1]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
lea ecx, [eax + ecx]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ecx*8 + 0x405680], eax
mov dword [ecx*8 + 0x405684], edx
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 3
setle al
test al, al
jne 0x40141e
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 3
setle al
test al, al
jne 0x401411
mov dword [esp + 0x20], 0
jmp 0x4015d8
mov eax, 0
mov edx, 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x24], 0
jmp 0x401594
mov eax, dword [esp + 0x24]
mov edx, dword [eax*8 + 0x405364]
mov eax, dword [eax*8 + 0x405360]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x28], 1
jmp 0x401575
mov eax, dword [esp + 0x24]
fld qword [eax*8 + 0x405040]
fld qword [esp + 0x30]
fmulp st(1)
fstp qword [esp + 0x30]
inc dword [esp + 0x28]
mov eax, dword [esp + 0x28]
cmp eax, dword [esp + 0x20]
setle al
test al, al
jne 0x40155c
fld qword [esp + 0x38]
fadd qword [esp + 0x30]
fstp qword [esp + 0x38]
inc dword [esp + 0x24]
mov eax, dword [0x405020]
cmp dword [esp + 0x24], eax
setle al
test al, al
jne 0x401538
mov eax, dword [esp + 0x20]
lea edx, [eax + 1]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
mov ecx, eax
shl ecx, 5
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [ecx + 0x4056a8], eax
mov dword [ecx + 0x4056ac], edx
inc dword [esp + 0x20]
cmp dword [esp + 0x20], 3
setle al
test al, al
jne 0x40151c
mov dword [0x405020], 4
mov dword [esp + 0x24], 1
jmp 0x401809
mov eax, dword [esp + 0x24]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x401676
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ecx
fld qword [eax*8 + 0x405680]
mov edx, dword [esp + 0x44]
mov ecx, dword [esp + 0x24]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ecx
fld qword [eax*8 + 0x405680]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
sete al
test al, al
je 0x401672
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x44], eax
inc dword [esp + 0x1c]
mov eax, dword [0x405020]
cmp dword [esp + 0x1c], eax
setle al
test al, al
jne 0x401612
mov dword [esp + 0x20], 1
jmp 0x4016eb
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ecx
shl eax, 3
lea ecx, [eax + 0x405680]
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0x20]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ebx
shl eax, 3
add eax, 0x405680
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.swap_double__double_
inc dword [esp + 0x20]
mov eax, dword [0x405020]
inc eax
cmp eax, dword [esp + 0x20]
setge al
test al, al
jne 0x401690
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x1c], eax
jmp 0x4017f1
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ecx
fld qword [eax*8 + 0x405680]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x24]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ecx
fld qword [eax*8 + 0x405680]
fdivp st(1)
fstp qword [esp + 0x48]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], eax
jmp 0x4017d8
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov eax, ecx
shl eax, 2
add eax, ecx
lea ecx, [eax*4]
add eax, ecx
shl eax, 2
add eax, esi
fld qword [eax*8 + 0x405680]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
mov eax, ecx
shl eax, 2
add eax, ecx
lea ecx, [eax*4]
add eax, ecx
shl eax, 2
add eax, esi
fld qword [eax*8 + 0x405680]
fmul qword [esp + 0x48]
fsubp st(1)
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ebx
fstp qword [eax*8 + 0x405680]
inc dword [esp + 0x20]
mov eax, dword [0x405020]
inc eax
cmp eax, dword [esp + 0x20]
setge al
test al, al
jne 0x401762
inc dword [esp + 0x1c]
mov eax, dword [0x405020]
cmp dword [esp + 0x1c], eax
setle al
test al, al
jne 0x40170a
inc dword [esp + 0x24]
mov eax, dword [0x405020]
dec eax
cmp eax, dword [esp + 0x24]
setge al
test al, al
jne 0x4015ff
mov edx, dword [0x405020]
mov eax, dword [0x405020]
lea esi, [eax + 1]
mov ecx, dword [0x405020]
mov eax, dword [0x405020]
lea ebx, [eax + 1]
mov eax, ecx
shl eax, 2
add eax, ecx
lea ecx, [eax*4]
add eax, ecx
shl eax, 2
add eax, ebx
fld qword [eax*8 + 0x405680]
mov ecx, dword [0x405020]
mov ebx, dword [0x405020]
mov eax, ecx
shl eax, 2
add eax, ecx
lea ecx, [eax*4]
add eax, ecx
shl eax, 2
add eax, ebx
fld qword [eax*8 + 0x405680]
fdivp st(1)
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, esi
fstp qword [eax*8 + 0x405680]
mov eax, dword [0x405020]
dec eax
mov dword [esp + 0x1c], eax
jmp 0x4019af
mov edx, dword [esp + 0x1c]
mov eax, dword [0x405020]
lea ecx, [eax + 1]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ecx
mov edx, dword [eax*8 + 0x405684]
mov eax, dword [eax*8 + 0x405680]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x20], eax
jmp 0x401949
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ecx
fld qword [eax*8 + 0x405680]
mov edx, dword [esp + 0x20]
mov eax, dword [0x405020]
lea ecx, [eax + 1]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ecx
fld qword [eax*8 + 0x405680]
fmulp st(1)
fld qword [esp + 0x30]
fsubrp st(1)
fstp qword [esp + 0x30]
inc dword [esp + 0x20]
mov eax, dword [0x405020]
cmp dword [esp + 0x20], eax
setle al
test al, al
jne 0x4018ed
mov edx, dword [esp + 0x1c]
mov eax, dword [0x405020]
lea esi, [eax + 1]
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x1c]
mov eax, ecx
shl eax, 2
add eax, ecx
lea ecx, [eax*4]
add eax, ecx
shl eax, 2
add eax, ebx
fld qword [eax*8 + 0x405680]
fld qword [esp + 0x30]
fdivrp st(1)
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, esi
fstp qword [eax*8 + 0x405680]
dec dword [esp + 0x1c]
cmp dword [esp + 0x1c], 0
setg al
test al, al
jne 0x4018ab
mov dword [esp], str.c0c3:
call sym._printf
mov dword [esp + 0x1c], 1
jmp 0x401a1c
mov edx, dword [esp + 0x1c]
mov eax, dword [0x405020]
lea ecx, [eax + 1]
mov eax, edx
shl eax, 2
add eax, edx
lea edx, [eax*4]
add eax, edx
shl eax, 2
add eax, ecx
mov edx, dword [eax*8 + 0x405684]
mov eax, dword [eax*8 + 0x405680]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0x40403d
call sym._printf
inc dword [esp + 0x1c]
mov eax, dword [0x405020]
cmp dword [esp + 0x1c], eax
setle al
test al, al
jne 0x4019d5
mov dword [esp], 0xa
call sym._putchar
mov eax, dword [0x405020]
inc eax
add eax, 0x64
mov edx, dword [eax*8 + 0x405684]
mov eax, dword [eax*8 + 0x405680]
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov eax, dword [0x405020]
inc eax
add eax, 0xc8
mov edx, dword [eax*8 + 0x405684]
mov eax, dword [eax*8 + 0x405680]
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], edx
mov eax, dword [0x405020]
inc eax
add eax, 0x12c
mov edx, dword [eax*8 + 0x405684]
mov eax, dword [eax*8 + 0x405680]
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
mov eax, dword [0x405020]
inc eax
add eax, 0x190
mov edx, dword [eax*8 + 0x405684]
mov eax, dword [eax*8 + 0x405680]
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], edx
mov eax, 0
mov edx, 0
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], edx
mov eax, 0
mov edx, 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x1c], 0
jmp 0x401bbb
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405040]
fmul qword [esp + 0x68]
fadd qword [esp + 0x60]
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405040]
fmul qword [esp + 0x70]
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405040]
fmulp st(1)
faddp st(1)
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405040]
fmul qword [esp + 0x78]
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405040]
fmulp st(1)
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405040]
fmulp st(1)
faddp st(1)
fstp qword [esp + 0x58]
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405360]
fld qword [esp + 0x58]
fsubrp st(1)
fabs
fld qword [esp + 0x50]
fxch st(1)
fucompp
fnstsw ax
test ah, 0x45
sete al
test al, al
je 0x401b89
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405360]
fld qword [esp + 0x58]
fsubrp st(1)
fabs
fstp qword [esp + 0x50]
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405360]
fld qword [esp + 0x58]
fsubrp st(1)
mov eax, dword [esp + 0x1c]
fld qword [eax*8 + 0x405360]
fld qword [esp + 0x58]
fsubrp st(1)
fmulp st(1)
fld qword [esp + 0x38]
faddp st(1)
fstp qword [esp + 0x38]
inc dword [esp + 0x1c]
cmp dword [esp + 0x1c], 8
setle al
test al, al
jne 0x401aeb
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0x404041
call sym._printf
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov dword [esp + 8], edx
mov dword [esp], 0x40404f
call sym._printf
mov eax, 0
add esp, 0x88
pop ebx
pop esi
leave
ret