Function at 0x40d870
Capabilities:
Delete file
Read file on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x4a5b40]
push ebx
push esi
mov esi, dword [0x48038c]
imul esi, dword [0x4a5b2c]
push edi
mov edi, dword [0x4804b0]
add edi, eax
add edi, esi
imul edi, eax
add edi, edi
add edi, edi
add edi, edi
mov dword [esp + 0x2c], esi
call fcn.00409ea0
mov ecx, dword [0x4a5b40]
mov edx, eax
mov eax, ecx
imul eax, ecx
imul ecx, esi
add eax, eax
add eax, eax
add eax, eax
lea ebx, [eax + edx]
push eax
mov eax, dword [0x468c8c]
push eax
lea edi, [ebx + ecx*8]
push edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], edi
call sub.MSVCR100.dll_memcpy
mov ecx, dword [0x4a5b40]
mov eax, dword [0x468ba8]
add esp, 0xc
lea edx, [ecx*8]
mov ecx, dword [0x468be0]
push edx
push eax
push ecx
call sub.MSVCR100.dll_memcpy
mov edx, dword [0x4a5b40]
mov eax, dword [0x468bf8]
imul edx, esi
add edx, edx
add edx, edx
add esp, 0xc
add edx, edx
push edx
push eax
push ebx
call sub.MSVCR100.dll_memcpy
mov edx, dword [0x468c60]
mov eax, dword [0x468bbc]
add esp, 0xc
lea ecx, [esi*8]
push ecx
push edx
push eax
call sub.MSVCR100.dll_memcpy
mov ecx, dword [0x476bc8]
mov ebx, dword [sym.imp.MSVCR100.dll__fseeki64]
add esp, 0xc
push 0
push 0
push 0
push ecx
call ebx
mov edx, dword [0x489ac4]
push 0
push 0
push 0
push edx
call ebx
mov eax, dword [0x4899e8]
push 0
push 0
push 0
push eax
call ebx
mov ecx, dword [0x489a90]
push 0
push 0
push 0
push ecx
call ebx
add esp, 0x40
cmp dword [0x4802e0], 0
mov dword [esp + 0x18], 0
jle 0x40dc0b
mov ebx, dword [0x4804b0]
mov ecx, dword [0x468cb0]
mov eax, ebx
imul eax, dword [esp + 0x18]
lea edx, [ebx*8]
push edx
lea edx, [ecx + eax*8]
mov eax, dword [0x468b60]
push edx
push eax
call sub.MSVCR100.dll_memcpy
imul ebx, dword [0x4a5b40]
mov esi, dword [sym.imp.MSVCR100.dll_fread]
add ebx, ebx
add ebx, ebx
add esp, 0xc
add ebx, ebx
je 0x40d9f2
mov ecx, dword [0x476bc8]
mov edx, dword [0x468bc0]
push ecx
push 1
push ebx
push edx
call esi
add esp, 0x10
mov eax, dword [0x489a90]
mov ecx, dword [0x468c40]
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
call fcn.004094e0
mov eax, dword [0x4899e8]
add esp, 0xc
push eax
push 1
lea ecx, [esp + 0x18]
push 4
push ecx
call esi
mov eax, dword [esp + 0x20]
add eax, eax
add esp, 0x10
add eax, eax
je 0x40da3e
mov edx, dword [0x4899e8]
push edx
push 1
push eax
mov eax, dword [0x468c08]
push eax
call esi
add esp, 0x10
mov ebx, dword [0x4804b0]
mov esi, dword [0x48038c]
mov eax, ebx
imul eax, esi
imul eax, dword [esp + 0x10]
add eax, eax
add eax, eax
add eax, eax
je 0x40da82
mov ecx, dword [0x489ac4]
mov edx, dword [0x468c84]
push ecx
push 1
push eax
push edx
call dword [sym.imp.MSVCR100.dll_fread]
mov ebx, dword [0x4804b0]
mov esi, dword [0x48038c]
add esp, 0x10
mov eax, dword [0x468bc0]
mov ecx, dword [0x4a5b40]
push eax
push ebx
push ebx
push ecx
mov ecx, dword [0x468c40]
mov eax, edi
call fcn.004080b0
mov eax, dword [0x4a5b40]
mov edx, dword [0x468bc0]
push edi
push eax
push ebx
push eax
mov eax, dword [esp + 0x44]
call fcn.00408570
mov edx, dword [0x4a5b40]
mov eax, dword [0x468c38]
push edi
push 1
push ebx
push edx
mov edx, dword [0x468b60]
call fcn.00407fc0
mov eax, dword [0x468c38]
mov ecx, dword [0x468be0]
push eax
mov eax, dword [0x4a5b40]
push 1
mov edx, ecx
call fcn.00408900
mov ecx, dword [0x468c40]
mov eax, dword [0x468be4]
mov edx, dword [0x468b60]
push ecx
push 1
push ebx
push ebx
call fcn.00407fc0
add esp, 0x48
cmp dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
jle 0x40dbf2
mov edx, dword [0x468c84]
mov eax, ebx
imul eax, esi
add eax, eax
add eax, eax
add eax, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0xc], edx
jmp 0x40db46
mov esi, dword [0x48038c]
mov eax, dword [0x468c08]
mov ecx, dword [esp + 0x14]
mov edi, dword [eax + ecx*4]
mov edx, dword [esp + 0xc]
mov eax, dword [0x4a5b40]
push edx
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [0x468b70]
push esi
call fcn.004081b0
imul esi, edi
mov ecx, dword [esp + 0x2c]
mov edx, dword [0x4a5b40]
add esp, 0xc
push ecx
mov ecx, dword [0x468b70]
push 0
mov edi, edx
mov eax, esi
call fcn.00423620
mov edx, dword [esp + 0x14]
mov edi, dword [0x48038c]
mov eax, dword [0x468bfc]
push edx
mov edx, dword [0x468be4]
push 1
push ebx
push edi
call fcn.00407fc0
mov eax, dword [0x468bfc]
add esp, 0x18
test edi, edi
jle 0x40dbd3
mov ecx, dword [0x468bbc]
lea esi, [ecx + esi*8]
fld qword [esi]
add eax, 8
fsub qword [eax - 8]
add esi, 8
dec edi
fstp qword [esi - 8]
jne 0x40dbc2
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
add dword [esp + 0xc], edx
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x40db40
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [0x4802e0]
jl 0x40d9a0
mov esi, dword [esp + 0x2c]
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edi, dword [esp + 0x20]
mov edx, dword [ebp + 0xc]
push eax
mov eax, dword [0x4a5b40]
push ecx
push edi
push edx
push eax
mov eax, dword [0x468c18]
push esi
call fcn.00423e80
add esp, 0x18
test eax, eax
jne 0x40dd57
mov ecx, dword [0x489ad0]
mov esi, dword [sym.imp.MSVCR100.dll_fprintf]
push str.Hmm._cholsol_in_glstheta1___failed.__Unable_to_continue._n
push ecx
call esi
add esp, 8
cmp dword [0x4a5b3c], 0
je 0x40dccd
cmp dword [0x489ad0], 0
je 0x40dccd
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x40dca3
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll__ftelli64]
add esp, 4
push edx
push eax
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__fileno]
add esp, 4
push eax
call dword [sym.imp.MSVCR100.dll__chsize_s]
add esp, 0xc
cmp dword [0x4a5b4c], 0
je 0x40dcbd
mov ecx, dword [0x489ad0]
push str.__body___html__n
push ecx
call esi
add esp, 8
mov edx, dword [0x489ad0]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov eax, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
push eax
call esi
mov ecx, dword [0x4899d8]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802bc]
add esp, 4
push edx
call esi
mov eax, dword [0x4802cc]
add esp, 4
push eax
call esi
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push ecx
call esi
mov edx, dword [0x4899d8]
add esp, 4
push edx
call esi
mov eax, dword [0x4802bc]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802cc]
add esp, 4
push ecx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x40dd4f
call fcn.00409900
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
mov eax, dword [0x4a5b40]
mov ebx, dword [esp + 0x24]
push edi
mov edi, dword [0x468c18]
push eax
push esi
push eax
mov edx, ebx
mov eax, edi
call fcn.00408660
mov edx, dword [0x4a5b40]
mov eax, dword [0x468bbc]
push edi
push 1
push esi
push edx
mov edx, dword [0x468be0]
call fcn.00408660
mov eax, dword [0x4a5b40]
mov esi, dword [0x468ba4]
imul eax, eax
add eax, eax
add eax, eax
add eax, eax
push eax
mov eax, dword [0x468c7c]
push esi
push eax
call sub.MSVCR100.dll_memcpy
mov eax, dword [0x4a5b40]
mov ecx, dword [ebp + 8]
add esp, 0x2c
push eax
push eax
push ecx
push esi
push ebx
push eax
call fcn.00407460
add esp, 0x18
test eax, eax
jne 0x40de5f
mov esi, dword [0x4a5b40]
xor ecx, ecx
test esi, esi
jle 0x40ddfd
mov edx, dword [0x468ba4]
fldz
lea edi, [esi*8 + 8]
fcom qword [edx]
fnstsw ax
test ah, 0x41
je 0x40de67
inc ecx
add edx, edi
cmp ecx, esi
jl 0x40ddeb
fstp st(0)
mov edi, dword [0x468ba4]
push esi
push edi
push esi
call fcn.00405d80
add esp, 0xc
test eax, eax
jne 0x40de69
push esi
push eax
push edi
push esi
call fcn.00406410
add esp, 0x10
test eax, eax
je 0x40de5f
mov edx, dword [0x468ba4]
mov eax, dword [0x4a5b40]
push edx
mov edx, dword [0x468be0]
push 1
push eax
push eax
mov eax, dword [0x468b7c]
call fcn.00407fc0
add esp, 0x10
test ebx, ebx
je 0x40de53
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [0x4a5b40]
jmp 0x40de69
fstp st(0)
mov eax, dword [0x468c7c]
imul esi, esi
mov ecx, dword [0x468ba4]
add esi, esi
add esi, esi
add esi, esi
push esi
push eax
push ecx
call sub.MSVCR100.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x40de96
push ebx
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret