Function at 0x1000abfb
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10054f50
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x10dc
call fcn.1003c260
mov eax, dword [0x1006d144]
xor eax, esp
mov dword [esp + 0x10d8], eax
push ebx
push esi
push edi
mov eax, dword [0x1006d144]
xor eax, esp
push eax
lea eax, [esp + 0x10f0]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], esi
mov ebx, 0x10071a50
cmp dword [0x1006f480], edi
je 0x1000ac6d
push ebx
mov dword [0x1006f480], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp esi, edi
jne 0x1000ac84
mov ecx, dword [esp + 0x14]
push str.default
call fcn.10004a5f
jmp 0x1000af7d
push esi
lea ecx, [esp + 0x88]
call fcn.10004aec
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x88]
mov dword [esp + 0x10fc], edi
call fcn.10004b34
mov edi, eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x88]
call fcn.10004b54
mov esi, eax
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x88]
call fcn.10004b34
push fcn.1003c1b1
push dword [edi + 4]
push dword [edi]
push dword [esi + 4]
push dword [esi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x74]
push eax
call fcn.100090aa
add esp, 0x20
test byte [0x10072ce4], 1
jne 0x1000ad20
or dword [0x10072ce4], 1
mov byte [esp + 0x10f8], 1
call fcn.1000b08e
push 0x10056393
call fcn.1003c3b2
pop ecx
mov byte [esp + 0x10f8], 0
push 8
pop ecx
xor esi, esi
xor eax, eax
mov dword [esp + 0x34], esi
lea edi, [esp + 0x38]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x34]
push eax
push esi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x1000ad59
mov ecx, dword [esp + 0x14]
push str.default
call fcn.10004a5f
push esi
jmp 0x1000af6f
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x84]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x1100], 2
call fcn.1000b1ce
mov eax, dword [0x10072c64]
mov dword [esp + 0x2c], eax
mov eax, dword [0x10072c4c]
lea edi, [esp + 0x28]
lea esi, [esp + 0x18]
mov dword [esp + 0x28], eax
call fcn.1001b29e
test al, al
jne 0x1000ade6
lea edi, [esp + 0x48]
call fcn.10006283
mov esi, eax
add esi, 0x1c
push 8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x1000adbd
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x1000ade8
lea esi, [esp + 0x18]
call fcn.10006283
mov ecx, dword [esp + 0x14]
add eax, 0x24
push eax
call fcn.10004a5f
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
jmp 0x1000af6f
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x9c], 8
mov eax, dword [esp + 0x88]
jae 0x1000ae07
lea eax, [esp + 0x88]
push edi
push edi
push 3
push edi
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x10f8], 3
cmp esi, edi
je 0x1000ae31
cmp esi, 0xffffffff
jne 0x1000ae4a
mov ecx, dword [esp + 0x14]
push str.default
call fcn.10004a5f
lea ecx, [esp + 0x18]
call fcn.10001336
jmp 0x1000ade0
push 0xfff
lea eax, [esp + 0xe9]
push edi
push eax
mov byte [esp + 0xf0], 0
call fcn.1003c1e0
add esp, 0xc
push edi
lea eax, [esp + 0x34]
push eax
push 0x1000
lea eax, [esp + 0xf0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0xe8]
call fcn.1002603d
pop ecx
push 0xc
push 8
push eax
lea esi, [esp + 0xac]
mov byte [esp + 0x1104], 4
call fcn.1000b03c
push edi
push 1
lea ecx, [esp + 0x70]
call fcn.10005814
push ebx
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [esp + 0x10f8], 7
xor eax, eax
cmp dword [esp + 0xb8], 0x10
push 9
pop ecx
lea edi, [esp + 0xc0]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0xa4]
jae 0x1000af08
lea eax, [esp + 0xa4]
push 0x20
push eax
lea eax, [esp + 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [esp + 0x84]
push eax
call fcn.1000b0f2
push 0xa
pop ecx
mov edi, eax
lea esi, [esp + 0xbc]
rep movsd dword es:[edi], dword [esi]
push ebx
mov byte [esp + 0x10fc], 6
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0xa0]
push eax
call fcn.10004a81
push 0
push 1
lea ecx, [esp + 0xa8]
call fcn.10005814
lea ecx, [esp + 0x18]
call fcn.10001336
push 0
push 1
lea ecx, [esp + 0x8c]
call fcn.10005a26
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10f0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10d8]
xor ecx, esp
call fcn.1003b824
mov esp, ebp
pop ebp
ret