Function at 0x100369a8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005283c
mov eax, dword fs:[0]
push eax
mov eax, 0x10d4
call fcn.10045a60
mov eax, dword [0x10065060]
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
xor edi, edi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 0x1078], edi
mov dword [ebp - 0x1074], ebx
mov dword [ebp - 0x1080], esi
cmp dword [0x1006802c], edi
je 0x10036a0b
push 0x10068e04
mov dword [0x1006802c], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp esi, edi
jne 0x10036a22
push str.default
mov ecx, ebx
call fcn.10001a00
mov eax, ebx
jmp 0x10036d08
mov eax, esi
lea ecx, [ebp - 0x102c]
call fcn.10001aa0
mov dword [ebp - 4], edi
lea ebx, [ebp - 0x1088]
lea edi, [ebp - 0x102c]
call fcn.10015b00
lea ebx, [ebp - 0x10c0]
mov esi, eax
call fcn.10015b50
lea ebx, [ebp - 0x10b8]
mov dword [ebp - 0x1078], eax
call fcn.10015b00
push dword [esi + 4]
mov ecx, dword [ebp - 0x1078]
push dword [esi]
lea esi, [ebp - 0x107c]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
call fcn.10016280
add esp, 0x18
test byte [0x10069d88], 1
jne 0x10036aac
or dword [0x10069d88], 1
mov byte [ebp - 4], 1
call fcn.10036d22
push 0x100543a7
call fcn.1003a139
pop ecx
mov byte [ebp - 4], 0
and dword [ebp - 0x10b0], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x10ac]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10b0]
push eax
push 0
push dword [ebp - 0x1080]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x10036aee
mov ecx, dword [ebp - 0x1074]
push str.default
call fcn.10001a00
jmp 0x10036cf7
mov ebx, 0x10068e04
push ebx
mov dword [ebp - 0x1080], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x102c]
push eax
lea eax, [ebp - 0x107c]
push eax
mov byte [ebp - 4], 2
call fcn.10036e58
mov eax, dword [0x10069c84]
mov dword [ebp - 0x1084], eax
mov eax, dword [0x10069c6c]
lea edi, [ebp - 0x1088]
lea esi, [ebp - 0x107c]
mov dword [ebp - 0x1088], eax
call fcn.10030d57
test al, al
jne 0x10036b8c
lea edi, [ebp - 0x109c]
call fcn.100285a0
mov esi, eax
add esi, 0x1c
push 8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10036b60
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x10036b8e
lea esi, [ebp - 0x107c]
call fcn.100285a0
mov ecx, dword [ebp - 0x1074]
add eax, 0x24
push eax
call fcn.10001a00
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x10036cf7
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x1014], 8
mov eax, dword [ebp - 0x1028]
jae 0x10036baa
lea eax, [ebp - 0x1028]
push edi
push edi
push 3
push edi
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x1078], esi
mov byte [ebp - 4], 3
cmp esi, edi
je 0x10036bd2
cmp esi, 0xffffffff
jne 0x10036be7
mov ecx, dword [ebp - 0x1074]
push str.default
call fcn.10001a00
jmp 0x10036cec
push 0xfff
lea eax, [ebp - 0x100f]
push edi
push eax
mov byte [ebp - 0x1010], 0
call fcn.1003c500
add esp, 0xc
push edi
lea eax, [ebp - 0x108c]
push eax
push 0x1000
lea eax, [ebp - 0x1010]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10dc]
push eax
lea ecx, [ebp - 0x1010]
call fcn.10038edf
pop ecx
push 0xc
push 8
push eax
lea esi, [ebp - 0x1048]
mov byte [ebp - 4], 4
call fcn.10034caa
lea ecx, [ebp - 0x10dc]
call fcn.10001a70
push ebx
mov dword [ebp - 0x1080], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 7
xor eax, eax
cmp dword [ebp - 0x1030], 0x10
push 9
pop ecx
lea edi, [ebp - 0x106c]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x109c]
mov dword [ebp - 0x1070], eax
mov eax, dword [ebp - 0x1098]
mov dword [ebp - 0x106c], eax
mov eax, dword [ebp - 0x1044]
jae 0x10036c9b
lea eax, [ebp - 0x1044]
push 0x20
push eax
lea eax, [ebp - 0x1068]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x102c]
push eax
call fcn.10036d83
push 0xa
pop ecx
mov edi, eax
lea esi, [ebp - 0x1070]
rep movsd dword es:[edi], dword [esi]
push ebx
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 0x1074]
lea eax, [ebp - 0x1048]
push eax
call fcn.10001a40
lea ecx, [ebp - 0x1048]
call fcn.10001a70
lea ecx, [ebp - 0x1078]
call fcn.10002ce0
lea esi, [ebp - 0x102c]
call fcn.10001b10
mov eax, dword [ebp - 0x1074]
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.10039e38
leave
ret