Function at 0x10041abe
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007a9a1
mov eax, dword fs:[0]
push eax
mov eax, 0x1090
call fcn.1004e980
mov eax, dword [0x100a0070]
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, edx
mov ebx, ecx
mov dword [ebp - 0x1090], ebx
and dword [ebp - 0x1098], 0
cmp dword [0x100a0bb0], 0
je 0x10041b1c
and dword [0x100a0bb0], 0
push 0x100a3e00
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
test esi, esi
jne 0x10041b31
push str.default
mov ecx, ebx
call fcn.100017d6
jmp 0x10041e0a
push esi
lea ecx, [ebp - 0x1028]
call fcn.1000587d
and dword [ebp - 4], 0
lea ecx, [ebp - 0x1028]
cmp dword [ebp - 0x1014], 8
lea edx, [ebp - 0x1028]
mov eax, dword [ebp - 0x1018]
cmovae ecx, dword [ebp - 0x1028]
cmovae edx, dword [ebp - 0x1028]
push edx
lea eax, [ecx + eax*2]
lea ecx, [ebp - 0x1028]
cmovae ecx, dword [ebp - 0x1028]
push eax
push ecx
lea ecx, [ebp - 0x1090]
call fcn.1002580d
mov eax, dword [0x100a4950]
add esp, 0xc
test al, 1
jne 0x10041bc5
or eax, 1
mov dword [0x100a4950], eax
mov byte [ebp - 4], 1
and dword [0x100a4954], 0
and dword [0x100a4958], 0
call fcn.10041fd6
push 0x1007b72f
mov dword [0x100a4954], eax
call fcn.1004df59
pop ecx
mov byte [ebp - 4], 0
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x108c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x108c]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x10041bf7
push str.default
mov ecx, ebx
call fcn.100017d6
jmp 0x10041dfb
mov eax, 0x100a3e00
push eax
mov dword [ebp - 0x1094], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1028]
mov byte [ebp - 4], 2
push eax
lea eax, [ebp - 0x1090]
push eax
call fcn.10041f9d
mov esi, dword [ebp - 0x1090]
mov edi, dword [0x100a4954]
cmp esi, edi
je 0x10041c46
lea eax, [esi + 0x10]
push eax
lea ecx, [ebp - 0x1028]
call fcn.1000fd8a
shr eax, 0x1f
test al, al
je 0x10041c48
mov esi, edi
cmp esi, edi
je 0x10041c7c
mov eax, dword [esi + 0x28]
lea ecx, [ebp - 0x1078]
cmp eax, dword [ecx]
jne 0x10041c7c
mov eax, dword [esi + 0x2c]
cmp eax, dword [ecx + 4]
jne 0x10041c7c
add esi, 0x30
mov ecx, ebx
push esi
call fcn.100017d6
push 0x100a3e00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10041dfb
push 0x100a3e00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x1014], 8
lea eax, [ebp - 0x1028]
cmovae eax, dword [ebp - 0x1028]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1090], esi
mov byte [ebp - 4], 3
test esi, esi
je 0x10041de4
cmp esi, 0xffffffff
je 0x10041de4
mov edi, 0x1000
lea eax, [ebp - 0x1010]
push edi
push 0
push eax
call fcn.10050900
add esp, 0xc
lea eax, [ebp - 0x109c]
push 0
push eax
push edi
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
lea edx, [ebp - 0x1010]
lea ecx, [ebp - 0x1058]
call fcn.1004115f
pop ecx
push 0xc
push 8
lea ecx, [ebp - 0x1040]
mov byte [ebp - 4], 4
push ecx
mov ecx, eax
call fcn.10001727
push 0
push 1
lea ecx, [ebp - 0x1058]
call fcn.10001805
mov eax, 0x100a3e00
push eax
mov dword [ebp - 0x1094], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor eax, eax
mov byte [ebp - 4], 7
cmp dword [ebp - 0x102c], 0x10
lea edi, [ebp - 0x1064]
push 9
pop ecx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1078]
mov dword [ebp - 0x1068], eax
mov eax, dword [ebp - 0x1074]
mov dword [ebp - 0x1064], eax
lea eax, [ebp - 0x1040]
cmovae eax, dword [ebp - 0x1040]
push 0x20
push eax
lea eax, [ebp - 0x1060]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x1028]
push eax
call fcn.10041f48
push 0xa
pop ecx
mov edi, eax
lea esi, [ebp - 0x1068]
rep movsd dword es:[edi], dword [esi]
push 0x100a3e00
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
and dword [ebx + 0x10], 0
lea eax, [ebp - 0x1040]
mov dword [ebx + 0x14], 0xf
mov ecx, ebx
push eax
mov byte [ebx], 0
call fcn.100019fd
push 0
push 1
lea ecx, [ebp - 0x1040]
call fcn.10001805
jmp 0x10041df0
push str.default
mov ecx, ebx
call fcn.100017d6
lea ecx, [ebp - 0x1090]
call fcn.1000391f
push 0
push 1
lea ecx, [ebp - 0x1028]
call fcn.100065b4
mov eax, ebx
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.1004d78e
mov esp, ebp
pop ebp
ret