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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x48
lea eax, [ebp - 0x68]
mov esi, ecx
push 0x24
push eax
mov dword [ebp - 0x70], esi
call sub.MSVCR100.dll_memset
mov edi, dword [esi]
mov ecx, dword [esi + 0x24]
push 0
push 0
push 0
push edi
mov byte [ebp - 0x20], 0
mov dword [ebp - 0x74], ecx
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push edi
push 1
lea edx, [ebp - 0x69]
push 1
push edx
call ebx
push edi
push 1
lea eax, [ebp - 0x69]
push 1
push eax
call ebx
push edi
push 1
add esi, 0xa
push 2
push esi
call ebx
add esp, 0x4c
push edi
push 1
lea ecx, [ebp - 0x80]
push 2
push ecx
call ebx
mov eax, dword [ebp - 0x70]
push edi
push 1
add eax, 8
push 2
push eax
call ebx
push edi
push 1
lea edx, [ebp - 0x69]
push 1
push edx
call ebx
mov eax, dword [ebp - 0x70]
xor ecx, ecx
add esp, 0x30
cmp word [eax + 8], cx
jg 0x407786
mov esi, dword [sym.imp.MSVCR100.dll_strncmp]
push 0x48
lea eax, [ebp - 0x68]
push eax
push 0x444521
mov byte [0x444521], cl
call esi
add esp, 0xc
test eax, eax
je 0x407741
push edi
push 1
push 0x4a
push 0x444520
call ebx
push 0x48
lea ecx, [ebp - 0x68]
push ecx
push 0x444521
call esi
add esp, 0x1c
test eax, eax
jne 0x407721
push edi
push 1
lea edx, [ebp - 0x69]
push 1
push edx
call ebx
mov esi, dword [ebp - 0x70]
push edi
push 1
push 2
add esi, 0xa
push esi
call ebx
push edi
push 1
lea eax, [ebp - 0x80]
push 2
push eax
call ebx
mov eax, dword [ebp - 0x70]
push edi
push 1
add eax, 8
push 2
push eax
call ebx
add esp, 0x40
push edi
push 1
lea ecx, [ebp - 0x69]
push 1
push ecx
call ebx
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebp - 0x70]
xor edx, edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [ebp - 0x84], ecx
cmp dx, word [esi]
jge 0x4078c3
mov eax, dword [ebp - 0x74]
mov esi, eax
sub esi, 0x4532f0
lea ecx, [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x7c], ecx
jmp 0x4077c3
mov esi, dword [ebp - 0x74]
push edi
push 1
lea eax, [ebp - 0x69]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4078d6
mov eax, 0x4532f0
nop
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4077e0
mov esi, dword [ebp - 0x78]
push edi
push 1
push 0xc
push esi
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4078d6
push edi
push eax
push eax
lea ecx, [ebp - 0x69]
push ecx
call ebx
add esp, 0x10
mov eax, esi
nop
mov cl, byte [eax]
mov edx, dword [ebp - 0x7c]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x407810
cmp byte [ebp - 0x14], 0x20
lea esi, [ebp - 0x14]
jne 0x407840
push 0xc
lea eax, [ebp - 0x13]
push eax
lea ecx, [ebp - 0x14]
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
cmp byte [ebp - 0x14], 0x20
je 0x407826
nop
cmp byte [esi], 0
je 0x40784b
inc esi
cmp byte [esi], 0x20
jne 0x407840
lea eax, [ebp - 0x14]
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407854
sub eax, edx
cmp eax, 8
jbe 0x40786c
cmp byte [ebp - 0xc], 0x24
jne 0x4078ec
mov esi, dword [ebp - 0x78]
push 0x24
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
mov eax, dword [ebp - 0x70]
je 0x40788c
inc dword [eax + 0x10]
mov eax, 9
jmp 0x407894
inc dword [eax + 0xc]
mov eax, 8
call fcn.00406820
mov eax, dword [ebp - 0x84]
mov ecx, 0xd
sub dword [ebp - 0x7c], ecx
add dword [ebp - 0x78], ecx
add dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 0x70]
movsx edx, word [ecx + 0xa]
inc eax
mov dword [ebp - 0x84], eax
cmp eax, edx
jl 0x4077c0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004391bc
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004391bc
mov esp, ebp
pop ebp
ret
push str._nVariable_names_limited_to_8_characters._n
call dword [sym.imp.MSVCR100.dll_printf]
call fcn.00406fe0
mov eax, dword [0x4596c4]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
push eax
mov dword [0x443e58], 1
call esi
mov ecx, dword [0x448bc8]
push ecx
call esi
add esp, 0xc
cmp dword [0x443e58], 0
je 0x40792e
call fcn.00406b90
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3