Function at 0x41b010
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x44f008]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 0xc], eax
push esi
push edi
mov dword [ebp - 0x30], ebx
cmp dword [ebx + 0xb8], 0
jne 0x41b04e
push 0x1b1
push str.C:DriveProjectsdiskspd2_0_21aCommonCommon.cpp
push str._pRandomDataWriteBuffer___nullptr
call fcn.0042c860
add esp, 0xc
mov eax, dword [ebx + 0x98]
lea edi, [ebx + 0xa0]
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd], 1
mov dword [ebp - 0x14], eax
call fcn.0040b610
cmp dword [ebp - 0x18], 0x10
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x2c]
jb 0x41b078
mov ecx, esi
mov edx, dword [ebp - 0x1c]
push 0
push 0x441ff8
call fcn.00414f50
mov byte [ebp - 0xe], al
add esp, 8
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x41b0c0
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x41b0b6
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b273
push ecx
push esi
call fcn.00423c9a
add esp, 8
cmp byte [ebp - 0xe], 0
je 0x41b0ef
mov ecx, dword [ebp - 0xc]
push 0
push dword [ebp - 0x14]
push dword [ebx + 0xb8]
call fcn.00418e80
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00423c89
mov esp, ebp
pop ebp
ret 4
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040b610
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
jb 0x41b104
mov eax, dword [ebp - 0x2c]
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edx, dword [ebp - 0x18]
mov ecx, eax
mov dword [ebp - 0x14], ecx
cmp edx, 0x10
jb 0x41b156
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b149
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b278
push edx
push ecx
call fcn.00423c9a
mov ecx, dword [ebp - 0x14]
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xffffffff
je 0x41b20b
mov esi, dword [ebp - 0x30]
mov edi, dword [ebx + 0x98]
mov ebx, dword [ebx + 0x9c]
mov esi, dword [esi + 0xb8]
test ebx, ebx
jne 0x41b190
test edi, edi
je 0x41b1c9
test ebx, ebx
jb 0x41b1a3
ja 0x41b19c
cmp edi, 0x10000
jbe 0x41b1a3
mov eax, 0x10000
jmp 0x41b1a5
mov eax, edi
push 0
lea edx, [ebp - 0xc]
push edx
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, 1
mov eax, dword [ebp - 0xc]
jne 0x41b1c7
test eax, eax
je 0x41b1c7
mov ecx, dword [ebp - 0x14]
add esi, eax
jmp 0x41b186
add esi, eax
mov eax, dword [ebp - 0x30]
mov edx, dword [eax + 0x98]
mov ecx, dword [eax + 0xb8]
add edx, ecx
cmp esi, edx
jae 0x41b1ec
mov edi, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi], al
inc esi
cmp esi, edx
jb 0x41b1e0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00423c89
mov esp, ebp
pop ebp
ret 4
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040b610
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
jb 0x41b220
mov eax, dword [ebp - 0x2c]
push eax
push str._n_nERROR:_Unable_to_open_entropy_file__s_n_n
call fcn.00401210
mov edx, dword [ebp - 0x18]
add esp, 8
cmp edx, 0x10
jb 0x41b25e
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x41b254
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x41b27d
push edx
push ecx
call fcn.00423c9a
add esp, 8
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00423c89
mov esp, ebp
pop ebp
ret 4
call fcn.0042aea7
call fcn.0042aea7
call fcn.0042aea7
int3