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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [0x448c78]
lea eax, [edi*8]
sub eax, edi
add eax, eax
add eax, eax
add eax, eax
mov esi, dword [eax + ecx]
mov dword [ebp - 0x64], eax
xor eax, eax
push eax
push eax
push eax
push esi
mov dword [edi*8 + 0x448be0], eax
mov dword [edi*8 + 0x448be4], eax
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push esi
push 1
lea edx, [ebp - 0x60]
push 0x50
push edx
call ebx
lea eax, [ebp - 0x60]
push 0xa
push eax
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 0x28
test eax, eax
je 0x407e05
mov byte [eax], 0
dec eax
cmp byte [eax], 0
je 0x407e05
cmp byte [eax], 0x20
jne 0x407e05
mov byte [eax], 0
dec eax
cmp byte [eax], 0
jne 0x407df7
push 0x29
lea ecx, [ebp - 0x60]
push str.HEADER_RECORDLIBRARY_HEADER_RECORD
push ecx
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
je 0x407e7e
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str.SAS_transport
push edi
push str.The_level__d_file_does_not_seem_to_be_a__s_file__n
call esi
mov edi, dword [edi*4 + 0x4444b0]
push edi
push str.__s_is_an_empty_file_n
call esi
call fcn.00406fe0
mov edx, dword [0x4596c4]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
push edx
mov dword [0x443e58], 1
call esi
mov eax, dword [0x448bc8]
push eax
call esi
add esp, 0x1c
cmp dword [0x443e58], 0
je 0x407e76
call fcn.00406b90
push 1
call dword [sym.imp.MSVCR100.dll_exit]
push esi
push 1
lea ecx, [ebp - 0x60]
push 0x50
push ecx
call ebx
push esi
push 1
lea edx, [ebp - 0x60]
push 0x50
push edx
call ebx
push esi
push 1
lea eax, [ebp - 0x60]
push 0x50
push eax
call ebx
lea ecx, [ebp - 0x60]
push 0xa
push ecx
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 0x38
test eax, eax
je 0x407ece
mov byte [eax], 0
dec eax
cmp byte [eax], 0
je 0x407ece
jmp 0x407ec0
cmp byte [eax], 0x20
jne 0x407ece
mov byte [eax], 0
dec eax
cmp byte [eax], 0
jne 0x407ec0
push 3
lea edx, [ebp - 0x15]
push 0x43b820
push edx
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x407ef0
mov dword [0x46e41c], 0x88
push 3
lea eax, [ebp - 0x15]
push 0x43b824
push eax
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x407f94
push esi
push 1
lea ecx, [ebp - 0x60]
push 0x50
push ecx
mov dword [0x46e41c], 0x8c
call ebx
push esi
push 1
lea edx, [ebp - 0x60]
push 0x50
push edx
call ebx
push esi
push 1
lea eax, [ebp - 0x60]
push 0x50
push eax
call ebx
push esi
push 1
lea ecx, [ebp - 0x60]
push 0x50
push ecx
call ebx
lea edx, [ebp - 0x2a]
add esp, 0x40
push edx
mov byte [ebp - 0x26], 0
call dword [sym.imp.MSVCR100.dll_atol]
add esp, 4
test eax, eax
jg 0x407f72
mov ecx, 1
mov eax, ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004391bc
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x64]
mov edx, dword [0x448c78]
xor ecx, ecx
mov dword [esi + edx + 4], eax
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004391bc
mov esp, ebp
pop ebp
ret
push str.SAS_transport
push edi
push str.The_level__d_file_does_not_seem_to_be_a__s_file__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, 0x14
cmp dword [0x443e58], 0
je 0x407fdc
call fcn.00406b90
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3