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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0xc0
call sym.___main
mov dword [esp + 4], 0x406102
mov dword [esp], 0
call sym._setlocale
mov byte [esp + 0x6f], 4
mov dword [esp + 0xbc], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
fld qword [0x4063d0]
fstp qword [esp + 0xa8]
mov dword [esp + 0xa4], 0
cmp dword [esp + 0xa4], 3
jg 0x401b24
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0xa4]
mov eax, dword [esp + eax*4 + 0x48]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.is_row_col_valid_int__int_
xor eax, 1
test al, al
je 0x401a48
mov eax, dword [esp + 0xa4]
add eax, 1
movsx eax, al
lea edx, [esp + 0x48]
mov ecx, dword [esp + 0xa4]
shl ecx, 2
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], edx
call sym.set_array_size_int__char__char_
mov eax, dword [esp + 0xa4]
add eax, 1
movsx eax, al
lea edx, [esp + 0x38]
mov ecx, dword [esp + 0xa4]
shl ecx, 2
add edx, ecx
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], edx
call sym.set_array_size_int__char__char_
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0xa4]
mov eax, dword [esp + eax*4 + 0x48]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.is_row_col_valid_int__int_
xor eax, 1
test al, al
je 0x40197b
mov dword [esp], str.__.__.
call sym._puts
jmp 0x40197b
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0xa4]
mov eax, dword [esp + eax*4 + 0x48]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.alloc_matrix_int__int_
mov edx, eax
mov eax, dword [esp + 0xa4]
mov dword [esp + eax*4 + 0x28], edx
mov byte [esp + 0x17], 0
mov eax, dword [esp + 0xa4]
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], str.___d____y_____n____:
call sym._printf
lea eax, [esp + 0x17]
mov dword [esp + 4], eax
mov dword [esp], sym.imp.libstdc_6.dll_std::cin
call sym.std::basic_istream_char__std::char_traits_char____std::operator___char__std::char_traits_char____std::basic_istream_char__std::char_traits_char_____char_
movzx eax, byte [esp + 0x17]
cmp al, 0x6e
jne 0x401ae6
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0xa4]
mov eax, dword [esp + eax*4 + 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.manual_fill_double__int__int_
jmp 0x401b17
mov eax, dword [esp + 0xa4]
mov ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0xa4]
mov edx, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0xa4]
mov eax, dword [esp + eax*4 + 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.random_fill_double__int__int_
add dword [esp + 0xa4], 1
jmp 0x40196d
mov dword [esp + 0xa0], 0
cmp dword [esp + 0xa0], 3
jg 0x401b74
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0xa0]
mov edx, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0xa0]
mov eax, dword [esp + eax*4 + 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.sort_matrix_rows_double__int__int_
add dword [esp + 0xa0], 1
jmp 0x401b2f
mov dword [esp + 0x9c], 0
cmp dword [esp + 0x9c], 3
jg 0x401ea4
mov eax, dword [esp + 0x9c]
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], str.___d:_n
call sym._printf
mov eax, dword [esp + 0x9c]
mov eax, dword [esp + eax*4 + 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x9c]
mov eax, dword [esp + eax*4 + 0x38]
mov dword [esp + 0x64], eax
mov dword [esp], 0xc
call sym.operator_new___unsigned_int_
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x64]
cmp eax, 0xfffffff
ja 0x401bfc
shl eax, 3
mov dword [esp], eax
call sym.operator_new___unsigned_int_
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x64]
cmp eax, 0xfffffff
ja 0x401c1d
jmp 0x401c01
call sym.___cxa_throw_bad_array_new_length
shl eax, 3
mov dword [esp], eax
call sym.operator_new___unsigned_int_
mov dword [esp + 0x58], eax
mov dword [esp + 0x98], 0
jmp 0x401c22
call sym.___cxa_throw_bad_array_new_length
mov eax, dword [esp + 0x98]
cmp eax, dword [esp + 0x68]
jge 0x401cb7
mov dword [esp + 0x94], 0
mov eax, dword [esp + 0x94]
cmp eax, dword [esp + 0x64]
jge 0x401caa
mov eax, dword [esp + 0x94]
lea edx, [eax*8]
mov eax, dword [esp + 0x5c]
add edx, eax
mov eax, dword [esp + 0x94]
lea ecx, [eax*8]
mov eax, dword [esp + 0x5c]
add eax, ecx
fld qword [eax]
mov eax, dword [esp + 0x9c]
mov eax, dword [esp + eax*4 + 0x28]
mov ecx, dword [esp + 0x98]
shl ecx, 2
add eax, ecx
mov eax, dword [eax]
mov ecx, dword [esp + 0x94]
shl ecx, 3
add eax, ecx
fld qword [eax]
faddp st(1)
fstp qword [edx]
add dword [esp + 0x94], 1
jmp 0x401c3e
add dword [esp + 0x98], 1
jmp 0x401c22
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.array_copy_double__double__int_
mov eax, dword [esp + 0x64]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.sort_double__int__int_
mov dword [esp + 0x90], 0
cmp dword [esp + 0x90], 2
jg 0x401d9d
mov dword [esp + 0x8c], 0
mov eax, dword [esp + 0x8c]
cmp eax, dword [esp + 0x64]
jge 0x401d90
mov eax, dword [esp + 0x64]
sub eax, dword [esp + 0x90]
add eax, 0x1fffffff
lea edx, [eax*8]
mov eax, dword [esp + 0x58]
add eax, edx
fld qword [eax]
mov eax, dword [esp + 0x8c]
lea edx, [eax*8]
mov eax, dword [esp + 0x5c]
add eax, edx
fld qword [eax]
fucom st(1)
fnstsw ax
sahf
jp 0x401d82
fucompp
fnstsw ax
sahf
jne 0x401d86
mov eax, dword [esp + 0x90]
lea edx, [eax*4]
mov eax, dword [esp + 0x60]
add edx, eax
mov eax, dword [esp + 0x8c]
mov dword [edx], eax
jmp 0x401d90
fstp st(0)
fstp st(0)
add dword [esp + 0x8c], 1
jmp 0x401d13
add dword [esp + 0x90], 1
jmp 0x401cfa
cmp dword [esp + 0x64], 2
jg 0x401db0
mov dword [esp], str.__3__.._____d_.______.__n
call sym._printf
mov eax, dword [esp + 0x9c]
lea edx, [eax + 1]
mov eax, dword [esp + 0x64]
cmp eax, 3
jle 0x401dc8
mov eax, 3
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], str._d__________d:
call sym._printf
mov dword [esp + 0x88], 0
mov eax, dword [esp + 0x64]
cmp eax, 3
jle 0x401df5
mov eax, 3
cmp eax, dword [esp + 0x88]
jle 0x401e52
mov eax, dword [esp + 0x88]
lea edx, [eax*4]
mov eax, dword [esp + 0x60]
add eax, edx
mov eax, dword [eax]
mov dword [esp + 4], eax
mov dword [esp], 0x40632e
call sym._printf
cmp dword [esp + 0x88], 2
jne 0x401e3c
mov dword [esp], 0x20
call sym._putchar
jmp 0x401e48
mov dword [esp], 0x406331
call sym._printf
add dword [esp + 0x88], 1
jmp 0x401de7
mov dword [esp], 0xa
call sym._putchar
cmp dword [esp + 0x5c], 0
je 0x401e71
mov eax, dword [esp + 0x5c]
mov dword [esp], eax
call sym.operator_delete___void_
cmp dword [esp + 0x58], 0
je 0x401e84
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.operator_delete___void_
cmp dword [esp + 0x60], 0
je 0x401e97
mov eax, dword [esp + 0x60]
mov dword [esp], eax
call sym.operator_delete___void_
add dword [esp + 0x9c], 1
jmp 0x401b7f
mov dword [esp + 0x84], 0
cmp dword [esp + 0x84], 3
jg 0x401f0e
mov eax, dword [esp + 0x84]
add eax, 1
mov dword [esp + 4], eax
mov dword [esp], str.__d:_n
call sym._printf
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + eax*4 + 0x38]
mov eax, dword [esp + 0x84]
mov edx, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0x84]
mov eax, dword [esp + eax*4 + 0x28]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.show_matrix_double__int__int_
add dword [esp + 0x84], 1
jmp 0x401eaf
mov dword [esp + 0x80], 0
cmp dword [esp + 0x80], 3
jg 0x401f69
mov eax, dword [esp + 0x80]
mov eax, dword [esp + eax*4 + 0x28]
mov eax, dword [eax]
fld qword [eax]
fld qword [esp + 0xa8]
fucompp
fnstsw ax
sahf
jbe 0x401f51
mov eax, dword [esp + 0x80]
mov eax, dword [esp + eax*4 + 0x28]
mov eax, dword [eax]
fld qword [eax]
jmp 0x401f58
fld qword [esp + 0xa8]
fstp qword [esp + 0xa8]
add dword [esp + 0x80], 1
jmp 0x401f19
mov dword [esp + 0x7c], 0
cmp dword [esp + 0x7c], 3
jg 0x402026
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + eax*4 + 0x28]
mov eax, dword [eax]
fld qword [eax]
fld qword [esp + 0xa8]
fucomp st(1)
fnstsw ax
sahf
jp 0x40201a
fld qword [esp + 0xa8]
fucompp
fnstsw ax
sahf
jne 0x40201c
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + eax*4 + 0x48]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + eax*4 + 0x38]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0xb8]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xbc]
mov dword [esp], eax
call sym.alloc_matrix_int__int_
mov dword [esp + 0xb4], eax
mov eax, dword [esp + 0x7c]
mov eax, dword [esp + eax*4 + 0x28]
mov edx, dword [esp + 0xb8]
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0xbc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call sym.sq_array_copy_double__double__int__int_
jmp 0x402026
fstp st(0)
add dword [esp + 0x7c], 1
jmp 0x401f71
mov dword [esp + 0x78], 0
mov eax, dword [esp + 0x78]
cmp eax, dword [esp + 0xbc]
jge 0x4020ca
mov dword [esp + 0x74], 0
mov eax, dword [esp + 0x74]
cmp eax, dword [esp + 0xb8]
jge 0x4020c0
mov eax, dword [esp + 0x78]
lea edx, [eax*4]
mov eax, dword [esp + 0xb4]
add eax, edx
mov eax, dword [eax]
mov edx, dword [esp + 0x74]
shl edx, 3
add eax, edx
mov edx, dword [esp + 0x78]
lea ecx, [edx*4]
mov edx, dword [esp + 0xb4]
add edx, ecx
mov edx, dword [edx]
mov ecx, dword [esp + 0x74]
shl ecx, 3
add edx, ecx
fld qword [edx]
mov edx, dword [esp + 0x78]
lea ecx, [edx*4]
mov edx, dword [esp + 0xb4]
add edx, ecx
mov edx, dword [edx]
mov ecx, dword [esp + 0x74]
shl ecx, 3
add edx, ecx
fld qword [edx]
fmulp st(1)
fstp qword [eax]
add dword [esp + 0x74], 1
jmp 0x402047
add dword [esp + 0x78], 1
jmp 0x40202e
mov dword [esp], str._________:
call sym._puts
mov eax, dword [esp + 0xb8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call sym.show_matrix_double__int__int_
mov dword [esp + 0x70], 0
cmp dword [esp + 0x70], 3
jg 0x40212d
mov eax, dword [esp + 0x70]
mov edx, dword [esp + eax*4 + 0x48]
mov eax, dword [esp + 0x70]
mov eax, dword [esp + eax*4 + 0x28]
mov dword [esp + 4], edx
mov dword [esp], eax
call sym.delete_matrix_double__int_
add dword [esp + 0x70], 1
jmp 0x402103
mov eax, dword [esp + 0xbc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0xb4]
mov dword [esp], eax
call sym.delete_matrix_double__int_
mov eax, 0
leave
ret