Function at 0x4c1a70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55acc6
mov eax, dword fs:[0]
push eax
mov eax, 0x103c
call fcn.00512250
mov eax, dword [0x5df7e4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push 0
push 0x80
push 3
push 0
push 1
push accept
push eax
mov dword [ebp - 0x1048], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x1044], ebx
cmp ebx, 0xffffffff
jne 0x4c1adb
xor al, al
jmp 0x4c1d10
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x1028], 0xf
mov byte [ebp - 0x103c], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x100c]
push 0xffc
push 0
push eax
call fcn.0052a280
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
add esp, 0xc
mov dword [ebp - 0x1040], 0
push 0
lea eax, [ebp - 0x1040]
push eax
push 0xffc
lea eax, [ebp - 0x100c]
push eax
push ebx
call edi
test eax, eax
je 0x4c1cd5
mov esi, dword [ebp - 0x1040]
or edx, 0xffffffff
lea eax, [edx + 0x17]
test esi, esi
je 0x4c1cd5
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1010], 0
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1010], 0xf
mov byte [ebp - 0x1024], 0
cmp esi, 0xf
ja 0x4c1bc6
push esi
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x1014], esi
push eax
lea eax, [ebp - 0x1024]
push eax
call fcn.00529d00
mov byte [ebp + esi - 0x1024], 0
jmp 0x4c1c5e
cmp esi, 0x7fffffff
ja 0x4c1d31
mov edi, esi
or edi, 0xf
cmp edi, 0x7fffffff
jbe 0x4c1be6
mov edi, accept
jmp 0x4c1bec
cmp edi, 0x16
cmovb edi, eax
lea ecx, [edi + 1]
cmp ecx, 0x1000
jb 0x4c1c1b
lea eax, [ecx + 0x23]
cmp eax, ecx
cmovbe eax, edx
push eax
call fcn.00511c4f
add esp, 4
test eax, eax
je 0x4c1d2c
lea ebx, [eax + 0x23]
and ebx, 0xffffffe0
mov dword [ebx - 4], eax
jmp 0x4c1c2e
test ecx, ecx
je 0x4c1c2c
push ecx
call fcn.00511c4f
add esp, 4
mov ebx, eax
jmp 0x4c1c2e
xor ebx, ebx
push esi
lea eax, [ebp - 0x100c]
mov dword [ebp - 0x1014], esi
push eax
push ebx
mov dword [ebp - 0x1010], edi
call fcn.00529780
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov byte [ebx + esi], 0
mov dword [ebp - 0x1024], ebx
mov ebx, dword [ebp - 0x1044]
add esp, 0xc
mov byte [ebp - 4], 1
lea eax, [ebp - 0x1024]
push eax
lea ecx, [ebp - 0x103c]
call fcn.004c2170
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x1010]
cmp edx, 0x10
jb 0x4c1cb5
mov ecx, dword [ebp - 0x1024]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x4c1cab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4c1d2c
push edx
push ecx
call fcn.00511c7f
add esp, 8
mov dword [ebp - 0x1014], 0
mov dword [ebp - 0x1010], 0xf
mov byte [ebp - 0x1024], 0
jmp 0x4c1b37
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1028], 0x10
lea eax, [ebp - 0x103c]
mov ecx, dword [ebp - 0x1048]
cmovae eax, dword [ebp - 0x103c]
push eax
call fcn.004c2490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x103c]
call fcn.004c02e0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005121be
mov esp, ebp
pop ebp
ret
call fcn.0052dad9
call fcn.004bcd10
int3