Function at 0x405240
Capabilities:
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 + 0x20]
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 0x405366
mov esi, dword [sym.imp.MSVCR100.dll_strncmp]
push 0x48
lea eax, [ebp - 0x68]
push eax
push 0x4385a1
mov byte [0x4385a1], cl
call esi
add esp, 0xc
test eax, eax
je 0x405321
push edi
push 1
push 0x4a
push 0x4385a0
call ebx
push 0x48
lea ecx, [ebp - 0x68]
push ecx
push 0x4385a1
call esi
add esp, 0x1c
test eax, eax
jne 0x405301
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 0x4054a3
mov eax, dword [ebp - 0x74]
mov esi, eax
sub esi, 0x4392b0
lea ecx, [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x7c], ecx
jmp 0x4053a3
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 0x4054b6
mov eax, 0x4392b0
nop
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4053c0
mov esi, dword [ebp - 0x78]
push edi
push 1
push 0xc
push esi
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4054b6
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 0x4053f0
cmp byte [ebp - 0x14], 0x20
lea esi, [ebp - 0x14]
jne 0x405420
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 0x405406
nop
cmp byte [esi], 0
je 0x40542b
inc esi
cmp byte [esi], 0x20
jne 0x405420
lea eax, [ebp - 0x14]
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405434
sub eax, edx
cmp eax, 8
jbe 0x40544c
cmp byte [ebp - 0xc], 0x24
jne 0x4054cc
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 0x40546c
inc dword [eax + 0x10]
mov eax, 9
jmp 0x405474
inc dword [eax + 0xc]
mov eax, 8
call fcn.004045b0
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 0x4053a0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042e325
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.0042e325
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
call fcn.00404c60
inc dword [0x437d8c]
je 0x4054ec
call fcn.004048c0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3