Function at 0x4705da
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [ebp - 0x68], ecx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 8]
mov dword [ecx], 0
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x14]
mov dword [eax], 0
mov dword [ebp - 0xc], 1
jmp 0x47060d
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x68]
call fcn.00471130
cmp dword [ebp - 0xc], eax
jge 0x470666
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 0xc]
add eax, dword [edx + ecx*4 - 4]
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x14]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ecx + edx*4]
mov edx, dword [ebp - 0xc]
add ecx, dword [eax + edx*4 - 4]
mov eax, dword [ebp - 0x68]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp - 0xc]
mov dword [edx + eax*4], ecx
jmp 0x470604
mov ecx, dword [ebp - 0x68]
call fcn.00471130
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
mov eax, dword [edx + eax*4 - 4]
add eax, 1
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x34], eax
mov ecx, dword [ebp - 0x68]
call fcn.00471130
mov edx, dword [ebp - 0x68]
mov ecx, dword [edx + 0x14]
mov edx, dword [ecx + eax*4 - 4]
add edx, 1
mov eax, dword [ebp - 0x68]
mov dword [eax + 0x30], edx
mov ecx, dword [ebp - 0x68]
mov dword [ecx + 0x24], 1
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x30]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp - 0x68]
cmp dword [edx + 0x30], 1
jne 0x4706c7
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x34]
mov dword [eax + 0x2c], edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 4]
shl ecx, 2
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 4]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x18], 8
mov ecx, dword [ebp - 0x68]
call fcn.0046e711
mov ecx, dword [ebp - 0x68]
add eax, dword [ecx + 0x38]
xor edx, edx
div dword [ebp - 0x18]
sub eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
cmp dword [ebp + 8], 0
je 0x470713
fild dword [ebp - 0x24]
fdiv qword [0x4dc618]
call sub.MSVCRT.dll__ftol
mov dword [ebp - 0x24], eax
cmp dword [ebp + 8], 0
jne 0x470731
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x2c]
jge 0x470731
push str.Out_of_memory__use_conjugate_gradient_solver_please
call fcn.0047f2e0
add esp, 4
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x10]
jge 0x470746
push str.Out_of_memory_for_solution
call fcn.0047f2e0
add esp, 4
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x24]
cmp eax, dword [edx + 0x2c]
jge 0x4707c5
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x24]
mov dword [ecx + 0x2c], edx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 1
jmp 0x470773
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 4]
jge 0x4707c5
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + edx*4]
add eax, 1
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x2c]
sub edx, eax
add edx, dword [ebp - 0x1c]
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
jge 0x4707c3
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x24]
add ecx, 1
mov edx, dword [ebp - 0x68]
mov dword [edx + 0x24], ecx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x14]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + edx*4 - 4]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x47076a
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x24]
shl edx, 2
push edx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x68]
mov ecx, dword [ebp - 0x5c]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x10]
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x24], 1
jle 0x4708ab
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 1
jmp 0x470825
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 4]
jge 0x47088f
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x14]
mov eax, dword [ebp - 0xc]
mov ecx, dword [edx + eax*4]
add ecx, 1
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x2c]
sub eax, ecx
add eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jge 0x47088d
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x20]
sub ecx, 1
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x10]
mov edx, dword [ebp - 0x14]
mov dword [eax + edx*4], ecx
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0xc]
sub ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [eax + ecx*4 - 4]
add edx, 1
mov dword [ebp - 0x1c], edx
jmp 0x47081c
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 4]
sub ecx, dword [ebp - 0x20]
sub ecx, 1
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x24]
mov edx, dword [ebp - 0x68]
mov edx, dword [edx + 0x10]
mov dword [edx + eax*4 - 4], ecx
cmp dword [ebp + 8], 0
je 0x470be8
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x2c]
shl ecx, 2
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x60], eax
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x60]
mov dword [edx + 0x1c], eax
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x2c], 1
mov dword [ebp - 0x30], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0x1c], 1
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x28], 0
jmp 0x47091d
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x28]
cmp eax, dword [edx + 0x24]
jge 0x470bbb
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x10]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x3c]
add ecx, dword [edx + eax*4]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [eax + ecx*4 - 4]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0xc], 0
jmp 0x470960
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x2c]
jge 0x47097d
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x1c]
mov edx, dword [ebp - 0xc]
mov dword [ecx + edx*4], 0
jmp 0x470957
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x4c], 0
jmp 0x4709ab
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0x4c]
cmp edx, dword [ecx + 0x28]
jge 0x470b65
mov dword [ebp - 0xc], 0
jmp 0x4709cc
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x38]
jge 0x4709e6
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x20]
mov edx, dword [ebp - 0xc]
mov byte [ecx + edx], 0
jmp 0x4709c3
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x18]
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x40]
add eax, dword [ecx + edx*4]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x40]
mov ecx, dword [edx + eax*4 - 4]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x4c]
imul eax, dword [edx + 0x38]
imul eax, dword [ebp - 0x34]
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x4c], 0
jne 0x470a2e
push 2
push 0x51dd10
mov ecx, dword [ebp - 0x68]
call fcn.0046e721
mov ecx, dword [0x531a08]
push ecx
call dword [sym.imp.MSVCRT.dll_rewind]
add esp, 4
push 0
mov edx, dword [ebp - 0x54]
push edx
mov eax, dword [0x531a08]
push eax
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0xc
mov dword [ebp - 0x58], eax
mov ecx, dword [0x531a08]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_fread]
add esp, 0x10
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xc], ecx
jmp 0x470a89
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x30]
jg 0x470b3b
mov ecx, dword [ebp - 0xc]
sub ecx, dword [ebp - 0x48]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0xc]
cmp edx, dword [ebp - 0x48]
jl 0x470b36
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp - 0x44]
jg 0x470b36
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x20]
mov eax, dword [ebp - 0x14]
movsx ecx, byte [edx + eax]
test ecx, ecx
jle 0x470b2d
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
sub edx, dword [eax + ecx*4]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ecx + eax*4 - 4]
lea edx, [edx + ecx + 1]
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x1c]
mov eax, dword [ebp - 8]
mov dword [ecx + eax*4], edx
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [edx + eax*4]
jne 0x470b0a
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
cmp eax, dword [ecx + edx*4]
jne 0x470b24
mov ecx, dword [ebp - 0x1c]
add ecx, 1
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
jmp 0x470a80
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x50]
add ecx, dword [edx + eax*4]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 8]
mov ecx, dword [ebp - 0x50]
mov edx, dword [eax + ecx*4 - 4]
add edx, 1
mov dword [ebp - 0x48], edx
jmp 0x4709a2
mov eax, dword [ebp - 0x68]
cmp dword [eax + 0x24], 1
jle 0x470bb6
push 2
mov ecx, dword [ebp - 0x28]
push ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [edx + 0x2c]
push eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0x1c]
push edx
mov ecx, dword [ebp - 0x68]
call fcn.0046e8fc
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x10]
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x38]
add eax, dword [ecx + edx*4]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 8]
mov eax, dword [ebp - 0x38]
mov ecx, dword [edx + eax*4 - 4]
add ecx, 1
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], 0
jmp 0x470914
cmp dword [0x531a08], 0
je 0x470bde
mov edx, dword [0x531a08]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov dword [0x531a08], 0
push 2
mov ecx, dword [ebp - 0x68]
call fcn.0046e798
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax + 0x2c]
shl ecx, 3
push ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [ebp - 0x64], eax
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0x64]
mov dword [edx + 0xc], eax
mov dword [ebp - 0xc], 0
jmp 0x470c18
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0x68]
mov eax, dword [ebp - 0xc]
cmp eax, dword [edx + 0x2c]
jge 0x470c3d
mov ecx, dword [ebp - 0x68]
mov edx, dword [ecx + 0xc]
mov eax, dword [ebp - 0xc]
mov dword [edx + eax*8], 0
mov dword [edx + eax*8 + 4], 0
jmp 0x470c0f
mov esp, ebp
pop ebp
ret 4