Function at 0x408b10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x4b6e40]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp + 0x10]
push ebx
push ebx
mov dword [ebp - 0x418], eax
mov dword [ebp - 0x40c], 1
mov dword [ebp - 0x408], ebx
mov dword [ebp - 0x410], ebx
call fcn.0040128a
add esp, 8
test esi, esi
jne 0x408bde
push 0xc8
push 0x4bae78
call fcn.00401037
add esp, 8
test eax, eax
je 0x408b95
push 0x400
lea eax, [ebp - 0x404]
push 0x4bae78
push eax
call fcn.004014ec
add esp, 0xc
jmp 0x408c65
push 1
push 0x4b6b38
call fcn.00401037
add esp, 8
test eax, eax
jne 0x408bbc
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x404]
push 0x4b6b38
push eax
call fcn.004014ec
push 0x400
push str._silentm.cfg
jmp 0x408c56
push str._silentm.cfg
push esi
call fcn.0041e470
add esp, 8
test eax, eax
je 0x408c1f
push 0xc8
push 0x4bae78
call fcn.00401037
add esp, 8
test eax, eax
je 0x408c1f
push 0
push 0x80
push 3
push 0
push 1
push bind
push 0x4bae78
jmp 0x408c7e
push 0x3a
push esi
call fcn.0041c2a0
add esp, 8
test eax, eax
push 0x400
lea eax, [ebp - 0x404]
je 0x408c45
push eax
push esi
call fcn.004014ec
add esp, 0xc
jmp 0x408c65
push 0x4b6b38
push eax
call fcn.004014ec
push 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.004014ba
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push bind
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x408dd8
nop
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.0041c510
add esp, 0xc
lea eax, [ebp - 0x414]
push 0
push eax
push 0x3ff
lea eax, [ebp - 0x404]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x408cd2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x408], eax
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x408dd1
xor esi, esi
test eax, eax
jle 0x408d26
cmp byte [ebp + esi - 0x404], 0xa
je 0x408cf7
inc esi
cmp esi, eax
jl 0x408ce6
jmp 0x408d26
mov eax, dword [ebp - 0x410]
push 0
inc eax
add eax, esi
push 0
push eax
push edi
mov dword [ebp - 0x410], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 0x400
jae 0x408def
mov byte [ebp + esi - 0x404], 0
mov edx, dword [ebp - 0x41c]
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x408d31
sub esi, ecx
push esi
push edx
lea eax, [ebp - 0x404]
push eax
call fcn.0041f9e0
add esp, 0xc
test eax, eax
jne 0x408d64
mov al, byte [ebp + esi - 0x404]
cmp al, 0x20
je 0x408d5e
cmp al, 9
jne 0x408d64
cmp ebx, dword [ebp + 0x18]
je 0x408d73
inc ebx
cmp dword [ebp - 0x408], 0x26
jne 0x408c90
jmp 0x408dd1
lea eax, [ebp - 0x404]
add eax, esi
cmp byte [eax], 0
je 0x408d98
mov al, byte [eax]
cmp al, 9
je 0x408d8a
cmp al, 0x20
jne 0x408d98
inc esi
lea eax, [ebp - 0x404]
add eax, esi
cmp byte [eax], 0
jne 0x408d80
cmp dword [ebp + 0x1c], 0
je 0x408dad
lea eax, [ebp - 0x404]
push eax
call fcn.00401771
add esp, 4
push dword [ebp + 0x14]
lea eax, [ebp - 0x404]
add eax, esi
push eax
push dword [ebp - 0x418]
call fcn.004014ec
add esp, 0xc
mov dword [ebp - 0x40c], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x40c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041c3d0
mov esp, ebp
pop ebp
ret
call fcn.0041e840
int3