Function at 0x40eb00
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x340
push ebx
push esi
push edi
mov al, byte [0x498130]
mov byte [ebp - 0x108], al
mov ecx, 0x3f
xor eax, eax
lea edi, [ebp - 0x107]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x29c], 1
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
cmp eax, 0x7f
jbe 0x40eb4b
xor eax, eax
jmp 0x40edd8
push 0x7f
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push 0
push 8
call sub.WINDCS32.dll_Ordinal_69
push eax
push 0x498f5c
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push str.proj.tmp
lea edx, [ebp - 0x108]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll__access]
add esp, 8
test eax, eax
je 0x40ebba
push 0x498ee8
lea ecx, [ebp - 0x214]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
jmp 0x40ebce
push 0x498f08
lea edx, [ebp - 0x214]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
lea eax, [ebp - 0x214]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40ebf2
xor eax, eax
jmp 0x40edd8
push 0x498ee8
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x40ec49
lea eax, [ebp - 0x108]
push eax
push str.Fatal_Error___No_Access_To___s_
lea ecx, [ebp - 0x300]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push 0x10
push str.RecHead.DLL
lea edx, [ebp - 0x300]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x40edd8
mov word [ebp - 0x298], 0
jmp 0x40ec66
mov ax, word [ebp - 0x298]
add ax, 1
mov word [ebp - 0x298], ax
movsx ecx, word [ebp - 0x298]
movsx edx, word [ebp + 0x14]
cmp ecx, edx
jge 0x40ecee
mov eax, dword [ebp - 8]
push eax
push 0xff
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x40ecd5
movsx edx, word [ebp - 0x298]
test edx, edx
jne 0x40ecb4
push 0x498f18
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
jmp 0x40ecd5
movsx ecx, word [ebp - 0x298]
push ecx
mov edx, dword [ebp + 0x10]
push edx
push str._s__d_n
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
jmp 0x40ec54
lea eax, [ebp - 0x294]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
movsx ecx, byte [ebp + eax - 0x295]
cmp ecx, 0xa
je 0x40ed1c
push 0x498f18
lea edx, [ebp - 0x294]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 4]
push eax
lea ecx, [ebp - 0x294]
push ecx
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
mov edx, dword [ebp - 8]
push edx
push 0xff
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
mov ecx, 1
test ecx, ecx
je 0x40ed87
mov edx, dword [ebp - 8]
push edx
push 0xff
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.MSVCRT.dll_fgets]
add esp, 0xc
test eax, eax
jne 0x40ed71
jmp 0x40ed87
mov ecx, dword [ebp - 4]
push ecx
lea edx, [ebp - 0x208]
push edx
call dword [sym.imp.MSVCRT.dll_fputs]
add esp, 8
jmp 0x40ed49
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.0048ee7a
add esp, 8
test eax, eax
jne 0x40edc2
mov dword [ebp - 0x29c], 0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.MSVCRT.dll_remove]
add esp, 4
mov eax, dword [ebp - 0x29c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret