Function at 0x409fb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x47a540]
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 - 0x418], eax
mov eax, dword [ebp + 0x10]
push ebx
push ebx
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x410], 1
mov dword [ebp - 0x40c], ebx
mov dword [ebp - 0x408], ebx
call fcn.0040abb0
add esp, 8
test esi, esi
jne 0x40a07e
push 0xc8
push 0x47ce98
call fcn.0040aef0
add esp, 8
test eax, eax
je 0x40a035
push 0x400
lea eax, [ebp - 0x404]
push 0x47ce98
push eax
call fcn.0040b920
add esp, 0xc
jmp 0x40a105
push 1
push 0x4780e0
call fcn.0040aef0
add esp, 8
test eax, eax
jne 0x40a05c
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041305e
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x404]
push 0x4780e0
push eax
call fcn.0040b920
push 0x400
push str._silentm.cfg
jmp 0x40a0f6
push str._silentm.cfg
push esi
call fcn.00414130
add esp, 8
test eax, eax
je 0x40a0bf
push 0xc8
push 0x47ce98
call fcn.0040aef0
add esp, 8
test eax, eax
je 0x40a0bf
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push 0x47ce98
jmp 0x40a11e
push 0x3a
push esi
call fcn.00413ec0
add esp, 8
test eax, eax
lea eax, [ebp - 0x404]
push 0x400
je 0x40a0e5
push eax
push esi
call fcn.0040b920
add esp, 0xc
jmp 0x40a105
push 0x4780e0
push eax
call fcn.0040b920
push 0x400
push esi
lea eax, [ebp - 0x404]
push eax
call fcn.0040b670
add esp, 0x18
push 0
push 0x80
push 3
push 0
push 1
push closesocket
lea eax, [ebp - 0x404]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x40a27a
nop
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
call fcn.004143a0
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 0x40a172
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x40a273
xor esi, esi
test eax, eax
jle 0x40a1c6
cmp byte [ebp + esi - 0x404], 0xa
je 0x40a197
inc esi
cmp esi, eax
jl 0x40a186
jmp 0x40a1c6
mov eax, dword [ebp - 0x408]
push 0
inc eax
add eax, esi
push 0
push eax
push edi
mov dword [ebp - 0x408], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp esi, 0x400
jae 0x40a291
mov byte [ebp + esi - 0x404], 0
mov edx, dword [ebp - 0x418]
mov esi, edx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x40a1d1
sub esi, ecx
lea eax, [ebp - 0x404]
push esi
push edx
push eax
call fcn.0043eb30
add esp, 0xc
test eax, eax
jne 0x40a204
mov al, byte [ebp + esi - 0x404]
cmp al, 0x20
je 0x40a1fe
cmp al, 9
jne 0x40a204
cmp ebx, dword [ebp + 0x18]
je 0x40a213
inc ebx
cmp dword [ebp - 0x40c], 0x26
jne 0x40a130
jmp 0x40a273
test al, al
je 0x40a23a
nop word [eax + eax]
mov al, byte [ebp + esi - 0x404]
cmp al, 9
je 0x40a22f
cmp al, 0x20
jne 0x40a23a
inc esi
cmp byte [ebp + esi - 0x404], 0
jne 0x40a220
cmp dword [ebp + 0x1c], 0
je 0x40a24f
lea eax, [ebp - 0x404]
push eax
call fcn.0040b080
add esp, 4
push dword [ebp + 0x14]
lea eax, [ebp - 0x404]
add eax, esi
push eax
push dword [ebp - 0x41c]
call fcn.0040b920
add esp, 0xc
mov dword [ebp - 0x410], 0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x410]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041305e
mov esp, ebp
pop ebp
ret
call fcn.00412e6e
int3