Function at 0x41bc30
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4965db
mov eax, dword fs:[0]
push eax
mov eax, 0x10a0
call fcn.00466610
mov eax, dword [0x4c6190]
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 esi, ecx
mov dword [ebp - 0x1080], esi
mov dword [ebp - 0x1058], 0
mov dword [ebp - 4], 0
mov eax, dword [esi]
cmp dword [eax + 0x1c], 0xfde9
jne 0x41bc94
push ecx
lea ecx, [ebp - 0x107c]
call fcn.0041dd70
jmp 0x41bcac
mov dword [ebp - 0x1014], eax
lea ecx, [ebp - 0x107c]
lea eax, [ebp - 0x1014]
push eax
call fcn.0041ddd0
mov eax, dword [esi]
lea ecx, [ebp - 0x107c]
mov dword [ebp - 0x10a8], eax
lea eax, [ebp - 0x10ac]
mov dword [ebp - 0x1088], eax
lea eax, [ebp - 0x1054]
mov dword [ebp - 0x10a4], ecx
lea ecx, [ebp - 0x10ac]
push eax
mov dword [ebp - fcn.0041e110], vtable.std::_Func_impl_no_alloc_class__public:_void___thiscall__public_virtual:_void___thiscall_Lua::Process::ProcessOutputLogger::Run_void_::_2::_lambda_1_::operator___void_const::_2::_lambda_3___void__char_const__.0
mov dword [ebp - 0x1030], 0
call fcn.0041e110
mov ecx, dword [ebp - 0x1088]
mov dword [ebp - 0x1030], eax
test ecx, ecx
je 0x41bd1d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x10ac]
cmp ecx, eax
setne al
push eax
call edx
xor ecx, ecx
mov dword [ebp - 0x1088], ecx
mov dword [ebp - 0x102c], 0
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0xf
mov byte [ebp - 0x102c], 0
test ecx, ecx
je 0x41bd63
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x10ac]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x1088], 0
mov byte [ebp - 4], 2
mov eax, dword [esi]
mov al, byte [eax + 0x74]
test al, al
jne 0x41bf61
push 0
lea eax, [ebp - 0x1014]
push eax
push 0xfff
lea eax, [ebp - 0x1010]
push eax
mov eax, dword [esi]
push dword [eax + 0x20]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41bf41
mov eax, dword [ebp - 0x1014]
cmp eax, 0x1000
jae 0x41c0da
mov byte [ebp + eax - 0x1010], 0
lea ecx, [ebp - 0x1010]
mov al, byte [ebp - 0x1010]
mov esi, ecx
test al, al
je 0x41bf2c
mov edx, dword [ebp - 0x101c]
cmp al, 0xd
je 0x41bddf
cmp al, 0xa
je 0x41bddf
inc esi
jmp 0x41becf
test edx, edx
je 0x41be9d
mov edi, dword [ebp - 0x1018]
mov ebx, esi
sub ebx, ecx
mov eax, edi
sub eax, edx
push ebx
push ecx
cmp ebx, eax
ja 0x41be26
lea eax, [ebx + edx]
cmp edi, 0x10
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x102c]
cmovae eax, dword [ebp - 0x102c]
lea edi, [eax + edx]
push edi
call fcn.00467ba0
add esp, 0xc
mov byte [ebx + edi], 0
jmp 0x41be38
push dword [ebp - 0x1080]
lea ecx, [ebp - 0x102c]
push ebx
call fcn.0040c6f0
mov edx, dword [ebp - 0x101c]
test edx, edx
je 0x41beca
cmp dword [ebp - 0x1018], 0x10
lea eax, [ebp - 0x102c]
mov ecx, dword [ebp - 0x1030]
cmovae eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1084], eax
test ecx, ecx
je 0x41c0df
mov eax, dword [ecx]
lea edx, [ebp - 0x1084]
push edx
call dword [eax + 8]
cmp dword [ebp - 0x1018], 0x10
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x101c], 0
cmovae eax, dword [ebp - 0x102c]
mov byte [eax], 0
jmp 0x41bec4
cmp ecx, esi
je 0x41beca
mov dword [ebp - 0x1084], ecx
mov ecx, dword [ebp - 0x1030]
mov byte [esi], 0
test ecx, ecx
je 0x41c0df
mov eax, dword [ecx]
lea edx, [ebp - 0x1084]
push edx
call dword [eax + 8]
mov edx, dword [ebp - 0x101c]
lea ecx, [esi + 1]
mov esi, ecx
mov al, byte [esi]
test al, al
jne 0x41bdd1
cmp ecx, esi
je 0x41bf2c
mov edi, dword [ebp - 0x1018]
sub esi, ecx
mov eax, edi
sub eax, edx
push esi
push ecx
cmp esi, eax
ja 0x41bf1a
lea eax, [esi + edx]
cmp edi, 0x10
mov dword [ebp - 0x101c], eax
lea eax, [ebp - 0x102c]
cmovae eax, dword [ebp - 0x102c]
lea edi, [eax + edx]
push edi
call fcn.00467ba0
add esp, 0xc
mov byte [esi + edi], 0
jmp 0x41bf2c
push dword [ebp - 0x1080]
lea ecx, [ebp - 0x102c]
push esi
call fcn.0040c6f0
mov esi, dword [ebp - 0x1080]
mov eax, dword [esi]
mov al, byte [eax + 0x74]
test al, al
je 0x41bd74
jmp 0x41bf61
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
je 0x41bf61
push eax
push 0x4aab54
push 0x4aab80
push 2
call fcn.00453ac0
add esp, 0x10
mov eax, dword [ebp - 0x101c]
test eax, eax
je 0x41bfc6
cmp dword [ebp - 0x1018], 0x10
lea eax, [ebp - 0x102c]
mov ecx, dword [ebp - 0x1030]
cmovae eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1080], eax
test ecx, ecx
je 0x41c0df
mov eax, dword [ecx]
lea edx, [ebp - 0x1080]
push edx
call dword [eax + 8]
cmp dword [ebp - 0x1018], 0x10
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x101c], 0
cmovae eax, dword [ebp - 0x102c]
mov byte [eax], 0
mov eax, dword [ebp - 0x101c]
mov byte [ebp - 4], 3
test eax, eax
je 0x41c023
cmp dword [ebp - 0x1018], 0x10
lea eax, [ebp - 0x102c]
mov ecx, dword [ebp - 0x1030]
cmovae eax, dword [ebp - 0x102c]
mov dword [ebp - 0x1080], eax
test ecx, ecx
je 0x41c0e4
mov eax, dword [ecx]
lea edx, [ebp - 0x1080]
push edx
call dword [eax + 8]
cmp dword [ebp - 0x1018], 0x10
lea eax, [ebp - 0x102c]
mov dword [ebp - 0x101c], 0
cmovae eax, dword [ebp - 0x102c]
mov byte [eax], 0
mov ecx, dword [ebp - 0x1018]
cmp ecx, 0x10
jb 0x41c05d
mov edx, dword [ebp - 0x102c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x41c053
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41c0e9
push ecx
push edx
call fcn.00465ef5
add esp, 8
mov ecx, dword [ebp - 0x1030]
mov dword [ebp - 0x101c], 0
mov dword [ebp - 0x1018], 0xf
mov byte [ebp - 0x102c], 0
test ecx, ecx
je 0x41c0a0
mov edx, dword [ecx]
lea eax, [ebp - 0x1054]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x1030], 0
mov ecx, dword [ebp - 0x1058]
test ecx, ecx
je 0x41c0be
mov edx, dword [ecx]
lea eax, [ebp - 0x107c]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
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.00465ee7
mov esp, ebp
pop ebp
ret
call fcn.00466933
call fcn.00464e54
call fcn.00464e54
call fcn.00469eed
int3