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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x80], eax
push ebx
push esi
push edi
push 0x48
lea eax, [esp + 0x3c]
mov esi, ecx
push 0x24
push eax
mov dword [esp + 0x1c], esi
call sub.MSVCR100.dll_memset
mov edi, dword [esi]
mov ecx, dword [esi + 0x20]
add esp, 0xc
push 0
push 0
push 0
push edi
mov byte [esp + 0x90], 0
mov dword [esp + 0x24], ecx
call dword [sym.imp.MSVCR100.dll__fseeki64]
mov ebx, dword [sym.imp.MSVCR100.dll_fread]
push edi
push 1
lea edx, [esp + 0x27]
push 1
push edx
call ebx
push edi
push 1
lea eax, [esp + 0x37]
push 1
push eax
call ebx
push edi
push 1
add esi, 0xa
push 2
push esi
call ebx
add esp, 0x40
push edi
push 1
lea ecx, [esp + 0x28]
push 2
push ecx
call ebx
mov eax, dword [esp + 0x20]
push edi
push 1
add eax, 8
push 2
push eax
call ebx
push edi
push 1
lea edx, [esp + 0x37]
push 1
push edx
call ebx
mov eax, dword [esp + 0x40]
xor ecx, ecx
add esp, 0x30
cmp word [eax + 8], cx
jg 0x40a9db
mov esi, dword [sym.imp.MSVCR100.dll_strncmp]
push 0x48
lea eax, [esp + 0x3c]
push eax
push 0x472ac1
mov byte [0x472ac1], cl
call esi
add esp, 0xc
test eax, eax
je 0x40a991
lea esp, [esp]
push edi
push 1
push 0x4a
push 0x472ac0
call ebx
push 0x48
lea ecx, [esp + 0x4c]
push ecx
push 0x472ac1
call esi
add esp, 0x1c
test eax, eax
jne 0x40a970
push edi
push 1
lea edx, [esp + 0x17]
push 1
push edx
call ebx
mov esi, dword [esp + 0x20]
push edi
push 1
push 2
add esi, 0xa
push esi
call ebx
push edi
push 1
lea eax, [esp + 0x48]
push 2
push eax
call ebx
mov eax, dword [esp + 0x40]
push edi
push 1
add eax, 8
push 2
push eax
call ebx
add esp, 0x40
push edi
push 1
lea ecx, [esp + 0x17]
push 1
push ecx
call ebx
add esp, 0x10
xor ecx, ecx
mov eax, dword [esp + 0x10]
xor edx, edx
mov dword [eax + 0xc], ecx
mov dword [eax + 0x10], ecx
mov dword [esp + 0x24], ecx
cmp dx, word [esi]
jge 0x40ab27
mov eax, dword [esp + 0x14]
mov esi, eax
sub esi, 0x489b30
lea ecx, [esp + 0x28]
sub ecx, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], esi
mov dword [esp + 0x1c], ecx
jmp 0x40aa18
mov esi, dword [esp + 0x14]
push edi
push 1
lea eax, [esp + 0x17]
push 1
push eax
call ebx
add esp, 0x10
cmp eax, 1
jne 0x40ab3e
mov eax, 0x489b30
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x40aa35
mov esi, dword [esp + 0x18]
push edi
push 1
push 0xc
push esi
call ebx
add esp, 0x10
cmp eax, 1
jne 0x40ab3e
push edi
push eax
push eax
lea ecx, [esp + 0x1b]
push ecx
call ebx
add esp, 0x10
mov eax, esi
mov cl, byte [eax]
mov edx, dword [esp + 0x1c]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40aa66
cmp byte [esp + 0x28], 0x20
lea esi, [esp + 0x28]
jne 0x40aaa0
nop
push 0xc
lea eax, [esp + 0x2d]
push eax
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.MSVCR100.dll_memmove]
add esp, 0xc
cmp byte [esp + 0x28], 0x20
je 0x40aa80
lea esp, [esp]
cmp byte [esi], 0
je 0x40aaab
inc esi
cmp byte [esi], 0x20
jne 0x40aaa0
lea eax, [esp + 0x28]
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40aab5
sub eax, edx
cmp eax, 8
jbe 0x40aace
cmp byte [esp + 0x30], 0x24
jne 0x40ab58
mov esi, dword [esp + 0x18]
push 0x24
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
je 0x40aaf0
inc dword [eax + 0x10]
mov eax, 9
jmp 0x40aaf8
inc dword [eax + 0xc]
mov eax, 8
call fcn.00409670
mov eax, dword [esp + 0x24]
mov ecx, 0xd
sub dword [esp + 0x1c], ecx
add dword [esp + 0x18], ecx
add dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x10]
movsx edx, word [ecx + 0xa]
inc eax
mov dword [esp + 0x24], eax
cmp eax, edx
jl 0x40aa14
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x80]
xor ecx, esp
call fcn.0045d089
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.0045d089
mov esp, ebp
pop ebp
ret
push str._nVariable_names_limited_to_8_characters._n
call dword [sym.imp.MSVCR100.dll_printf]
add esp, 4
cmp dword [0x4a5b3c], 0
je 0x40abe7
cmp dword [0x489ad0], 0
je 0x40abe7
push str.stdout
push 0x476be0
call dword [sym.imp.MSVCR100.dll__stricmp]
add esp, 8
test eax, eax
je 0x40abba
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll__ftelli64]
mov ecx, dword [0x489ad0]
add esp, 4
push edx
push eax
push ecx
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 0x40abd8
mov edx, dword [0x489ad0]
push str.__body___html__n
push edx
call dword [sym.imp.MSVCR100.dll_fprintf]
add esp, 8
mov eax, dword [0x489ad0]
push eax
call dword [sym.imp.MSVCR100.dll_fclose]
add esp, 4
call fcn.0040a1a0
mov ecx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_remove]
inc dword [0x468ff8]
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
mov edx, dword [0x469488]
mov esi, dword [sym.imp.MSVCR100.dll_free]
add esp, 4
push edx
call esi
mov eax, dword [0x4899d8]
add esp, 4
push eax
call esi
mov ecx, dword [0x4802bc]
add esp, 4
push ecx
call esi
mov edx, dword [0x4802cc]
add esp, 4
push edx
call esi
add esp, 4
cmp dword [0x468ff8], 0
je 0x40ac6a
call fcn.00409900
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3