Function at 0x411fe0
Capabilities:
Delete file
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ab5d6
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x4c4b80]
xor eax, esp
mov dword [esp + 0x248], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c4b80]
xor eax, esp
push eax
lea eax, [esp + 0x260]
mov dword fs:[0], eax
mov esi, dword [0xd1b03c]
mov ebp, dword [0xd1b014]
add esi, 4
mov edi, 3
nop
mov eax, dword [esi]
push ebp
push 0x40d870
push eax
call fcn.004100b0
add esp, 0xc
add esi, 4
dec edi
jne 0x412030
mov eax, dword [0xd1b03c]
push eax
lea ecx, [esp + 0x24]
call fcn.0048c950
lea ecx, [esp + 0x5c]
xor ebx, ebx
push 0x4b13f4
push ecx
mov dword [esp + 0x270], ebx
mov dword [0xd1b0a4], ebx
call dword [sym.imp.MSVCR100.dll_sprintf]
lea edx, [esp + 0x64]
push 0x200
push edx
call fcn.00460870
lea eax, [esp + 0x6c]
push 0x4b1404
push eax
call dword [sym.imp.MSVCR100.dll_fopen]
add esp, 0x18
mov dword [0xd1b0a0], eax
cmp eax, ebx
je 0x41222b
mov ecx, dword [0xd1b03c]
mov eax, dword [ecx + 0xc]
fld dword [eax + 0x30]
fstp dword [esp + 0x18]
fld dword [eax + 0x34]
fstp dword [esp + 0x14]
fld dword [eax + 0x20]
fstp dword [esp + 0x1c]
fld dword [esp + 0x14]
fst dword [esp + 0x14]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jp 0x412154
fld dword [esp + 0x14]
lea edx, [esp + 0x40]
push edx
lea eax, [esp + 0x3c]
push eax
push ecx
fstp dword [esp]
push ebx
lea ecx, [esp + 0x30]
call fcn.0048c970
cmp eax, ebx
je 0x41212d
mov ecx, dword [0xd1b014]
push 1
push 1
push ecx
mov ecx, dword [0xd1affc]
push eax
call fcn.00471130
test eax, eax
mov eax, dword [0xd1b014]
je 0x41211b
cmp dword [eax], ebx
je 0x41214e
fld dword [esp + 0x38]
push ecx
fstp dword [esp]
push ebx
push eax
call fcn.00410520
add esp, 0xc
fld dword [esp + 0x14]
fsub dword [esp + 0x1c]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
jnp 0x4120db
fstp st(0)
jmp 0x412154
inc dword [0xd1b0a8]
mov ecx, dword [0xd1b03c]
mov eax, dword [ecx + 4]
fld dword [eax + 0x30]
mov edx, dword [ecx + 0xc]
fstp dword [esp + 0x18]
fld dword [eax + 0x34]
fstp dword [esp + 0x1c]
fld dword [edx + 0x20]
fstp dword [esp + 0x30]
fld dword [esp + 0x1c]
fst dword [esp + 0x14]
fld dword [esp + 0x18]
fcompp
fnstsw ax
test ah, 0x41
jp 0x412209
fld dword [esp + 0x14]
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x20]
push ecx
push ecx
fstp dword [esp]
push 1
lea ecx, [esp + 0x30]
call fcn.0048c970
cmp eax, ebx
je 0x4121e2
mov edx, dword [0xd1b014]
mov ecx, dword [0xd1affc]
push 1
push 1
push edx
push eax
call fcn.00471130
test eax, eax
mov eax, dword [0xd1b014]
je 0x4121cf
cmp dword [eax], ebx
je 0x412203
fld dword [esp + 0x1c]
push ecx
fstp dword [esp]
push 1
push eax
call fcn.00410520
add esp, 0xc
fld dword [esp + 0x14]
fsub dword [esp + 0x30]
fstp dword [esp + 0x14]
fld dword [esp + 0x14]
fld dword [esp + 0x18]
fcomp st(1)
fnstsw ax
test ah, 0x41
jnp 0x41218e
fstp st(0)
jmp 0x412209
inc dword [0xd1b0a8]
cmp dword [0xd1b0a8], ebx
je 0x412247
mov eax, dword [0xd1b0a0]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
lea ecx, [esp + 0x60]
push ecx
call dword [sym.imp.MSVCR100.dll_remove]
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x268], 0xffffffff
call fcn.0048cde0
or eax, 0xffffffff
jmp 0x412490
mov eax, dword [0xd1b03c]
mov edx, dword [eax + 0xc]
fld dword [edx + 0x20]
mov ecx, dword [0xd1b008]
fstp dword [esp + 0x30]
mov dword [0xd1b040], eax
fld dword [esp + 0x30]
mov dword [0xd1b03c], ebx
fst qword [esp + 0x30]
fmul qword [0x4b05c8]
fstp dword [0x4be6a4]
fld dword [ecx + 0x10]
fld dword [0x4be6a4]
fcom st(1)
fnstsw ax
fstp st(1)
test ah, 0x41
jne 0x4122c0
fld dword [ecx + 0xc]
fmul st(0), st(0)
fld st(1)
fmulp st(2)
fsubrp st(1)
fld qword [0x4b11d0]
fcomp st(1)
fnstsw ax
test ah, 5
jp 0x4122c0
call sub.MSVCR100.dll__CIsqrt
fstp dword [0xd1b05c]
mov dword [0xd1b064], 1
jmp 0x4122c2
fstp st(0)
push 0x88
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
mov dword [esp + 0x3c], eax
mov byte [esp + 0x268], 1
cmp eax, ebx
je 0x4122e8
mov ecx, eax
call fcn.00479ba0
jmp 0x4122ea
xor eax, eax
mov byte [esp + 0x268], bl
mov dword [0xd1b054], eax
cmp eax, ebx
je 0x41222b
fld qword [0x4b1908]
push 1
sub esp, 0x18
fstp qword [esp + 0x10]
mov ecx, eax
fld qword [0x4b1900]
fstp qword [esp + 8]
fld qword [esp + 0x4c]
fstp qword [esp]
call fcn.0047a600
test eax, eax
jne 0x41222b
fldz
push 0xd1b0ec
fst dword [0xd1b0ec]
push 2
fstp dword [0xd1b0f0]
fld1
fstp dword [0xd1b0f4]
call fcn.00468280
fld dword [0xd1b0ec]
fld dword [0xd1b0f0]
mov ecx, dword [0xd1b054]
fld dword [0xd1b0f4]
add esp, 8
fxch st(2)
lea eax, [esp + 0x44]
fstp qword [esp + 0x44]
push eax
fstp qword [esp + 0x50]
fstp qword [esp + 0x58]
call fcn.00479d90
cmp eax, ebx
jne 0x41222b
mov ecx, dword [0xd1b054]
push ecx
mov ecx, dword [0xd1b040]
call fcn.0047fcb0
test eax, eax
jne 0x41222b
push 8
call sub.MSVCR100.dll_void____cdecl_operator_new_unsigned_int_
add esp, 4
cmp eax, ebx
je 0x4123b9
mov dword [eax + 4], ebx
mov dword [eax], ebx
jmp 0x4123bb
xor eax, eax
mov dword [0xd1b044], eax
cmp eax, ebx
je 0x41222b
mov ecx, eax
call fcn.00413c60
test eax, eax
jne 0x41222b
mov edx, dword [0xd1b0a0]
push ebx
push ebx
push edx
call dword [sym.imp.MSVCR100.dll_fseek]
add esp, 0xc
test eax, eax
jne 0x41222b
xor ebp, ebp
cmp dword [0xd1b0a4], ebx
jle 0x412454
mov edi, dword [sym.imp.MSVCR100.dll_fread]
mov eax, dword [0xd1b044]
mov ecx, dword [eax + 4]
call fcn.00413d30
mov esi, eax
cmp esi, ebx
je 0x41222b
mov ecx, dword [0xd1b0a0]
push ecx
push 6
push 4
push esi
call edi
add esp, 0x10
cmp eax, 6
jne 0x41222b
fld dword [esi + 8]
fsub dword [esi + 0x14]
fcomp qword [0x4b18d0]
fnstsw ax
test ah, 5
jp 0x41244b
fld dword [esi + 8]
fstp dword [esi + 0x14]
inc ebp
cmp ebp, dword [0xd1b0a4]
jl 0x412401
mov edx, dword [0xd1b0a0]
push edx
call dword [sym.imp.MSVCR100.dll_fclose]
lea eax, [esp + 0x60]
push eax
call dword [sym.imp.MSVCR100.dll_remove]
mov ecx, dword [0xd1b044]
add esp, 8
call fcn.00415500
lea ecx, [esp + 0x20]
mov dword [esp + 0x268], 0xffffffff
call fcn.0048cde0
xor eax, eax
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x248]
xor ecx, esp
call fcn.0048d046
add esp, 0x258
ret