Function at 0x4041ce
Capabilities:
Read file on windows

Disassembly:
push 0x188
push 0x401448
call fcn.00402245
xor esi, esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x38], esi
mov eax, dword [0x4050a8]
mov eax, dword [eax + 0x34]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x40], esi
mov dword [ebp - 4], esi
call dword [0x40108c]
push eax
push 1
push 0x1f0fff
call dword [0x401088]
mov ebx, eax
mov dword [ebp - 0x3c], ebx
cmp ebx, esi
je 0x4043fa
push 0x44
pop edi
push edi
push esi
lea eax, [ebp - 0x94]
push eax
call fcn.00404529
mov dword [ebp - 0x94], edi
mov word [ebp - 0x64], si
mov dword [ebp - 0x68], 0x181
mov dword [ebp - 0x54], ebx
push 4
pop ebx
mov dword [ebp - 0x4c], ebx
cmp dword [ebp - 0x24], esi
je 0x40425c
push 0x104
lea eax, [ebp - 0x198]
push eax
call fcn.00403f9b
test eax, eax
jne 0x40426a
push 1
lea eax, [ebp - 0x198]
push eax
call fcn.0040408c
cmp dword [ebp + 8], esi
je 0x4042fb
lea edi, [ebp + 8]
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x44], esi
lea eax, [ebp - 0x20]
push eax
push 1
push esi
push esi
push 0x2000000
push dword [ebp + 8]
call dword [sym.imp.ntdll.dll_NtQuerySecurityObject]
test eax, eax
je 0x4042af
push ebx
lea eax, [ebp - 0x44]
push eax
push 0xc
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtCreateFile]
lea edi, [ebp - 0x20]
mov dword [ebp - 0x48], edi
mov ebx, 0x404
mov dword [ebp - 0x4c], ebx
push esi
push dword [edi]
lea eax, [ebp - 0x40]
push eax
call dword [0x401140]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push dword [ebp - 0x40]
push ebx
push 1
push esi
push esi
lea eax, [ebp - 0x198]
push eax
push esi
push dword [edi]
call dword [sym.imp.ntdll.dll_NtReadFile]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x40431e
push dword [ebp - 0x20]
call dword [fcn.00401060]
jmp 0x40431e
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push ebx
push 1
push esi
push esi
lea eax, [ebp - 0x198]
push eax
push esi
call dword [0x401058]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], esi
je 0x404348
cmp dword [ebp - 0x1c], esi
je 0x40439c
push esi
lea eax, [ebp - 0x198]
push eax
call fcn.0040408c
push esi
push dword [ebp - 0x34]
lea eax, [ebp - 0x198]
push eax
call fcn.0040401c
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, esi
je 0x4043fa
cmp dword [ebp - 0x24], esi
jne 0x40435d
mov eax, dword [0x4050b0]
push esi
push 0x80
mov ecx, 0x4050b8
push ecx
sub eax, dword [0x4050b0]
add eax, ecx
push eax
push dword [ebp - 0x34]
call dword [fcn.004010ac]
cmp dword [ebp - 0x24], esi
je 0x4043c4
push esi
lea eax, [ebp - 0x1c]
push eax
push esi
push esi
mov eax, dword [0x4050a8]
push dword [eax + 0x34]
push dword [ebp - 0x34]
call fcn.00404464
cmp dword [ebp - 0x1c], esi
jne 0x4043cd
cmp dword [ebp - 0x34], esi
je 0x4043b4
push esi
push dword [ebp - 0x34]
call dword [0x401074]
push dword [ebp - 0x34]
call dword [fcn.00401060]
cmp dword [ebp - 0x30], esi
je 0x4043fa
push dword [ebp - 0x30]
call dword [fcn.00401060]
jmp 0x4043fa
push dword [ebp - 0x30]
call dword [0x401054]
cmp dword [0x405090], esi
jne 0x4043ef
lea eax, [ebp - 0x50]
push eax
push esi
push dword [ebp - 0x34]
push 0x403830
push esi
push esi
call dword [0x4010a8]
mov dword [ebp - 0x38], eax
jmp 0x4043fa
push dword [ebp - 0x34]
call fcn.004044d8
mov dword [ebp - 0x34], esi
or dword [ebp - 4], 0xffffffff
call fcn.00404410
mov eax, dword [ebp - 0x1c]
call fcn.0040265a
ret 4