Function at 0x404750
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 + 0x1c]
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 0x404876
mov esi, dword [sym.imp.MSVCR100.dll_strncmp]
push 0x48
lea eax, [ebp - 0x68]
push eax
push 0x430261
mov byte [0x430261], cl
call esi
add esp, 0xc
test eax, eax
je 0x404831
push edi
push 1
push 0x4a
push 0x430260
call ebx
push 0x48
lea ecx, [ebp - 0x68]
push ecx
push 0x430261
call esi
add esp, 0x1c
test eax, eax
jne 0x404811
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 0x4049b3
mov eax, dword [ebp - 0x74]
mov esi, eax
sub esi, 0x430cf0
lea ecx, [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x7c], ecx
jmp 0x4048b3
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 0x4049c6
mov eax, 0x430cf0
nop
mov cl, byte [eax]
mov byte [esi + eax], cl
inc eax
test cl, cl
jne 0x4048d0
mov esi, dword [ebp - 0x78]
push edi
push 1
push 0xc
push esi
call ebx
add esp, 0x10
cmp eax, 1
jne 0x4049c6
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 0x404900
cmp byte [ebp - 0x14], 0x20
lea esi, [ebp - 0x14]
jne 0x404930
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 0x404916
nop
cmp byte [esi], 0
je 0x40493b
inc esi
cmp byte [esi], 0x20
jne 0x404930
lea eax, [ebp - 0x14]
mov byte [esi], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x404944
sub eax, edx
cmp eax, 8
jbe 0x40495c
cmp byte [ebp - 0xc], 0x24
jne 0x4049dc
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 0x40497c
inc dword [eax + 0x10]
mov eax, 9
jmp 0x404984
inc dword [eax + 0xc]
mov eax, 8
call fcn.00403be0
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 0x4048b0
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00425fc4
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.00425fc4
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.MSVCR100.dll_printf]
push str._nVariable_names_limited_to_8_characters._n
call esi
push 0x427955
push 0x428e48
call esi
add esp, 0xc
call fcn.00404240
inc dword [0x42fba4]
je 0x404a0a
call fcn.00403eb0
push 0x64
call dword [sym.imp.MSVCR100.dll_exit]
int3