Function at 0x100369ee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005dbc8
mov eax, dword fs:[0]
push eax
mov eax, 0x10d8
call fcn.10051380
mov eax, dword [0x100741c0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x108c], edi
mov dword [ebp - 0x1078], eax
mov dword [ebp - 0x107c], esi
mov ebx, 0x10077c18
cmp dword [0x10076cfc], edi
je 0x10036a53
push ebx
mov dword [0x10076cfc], edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp esi, edi
jne 0x10036a6c
mov ecx, dword [ebp - 0x1078]
push str.default
call fcn.10001976
jmp 0x10036d5f
push esi
lea esi, [ebp - 0x1030]
call fcn.100057e7
lea eax, [ebp - 0x1088]
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.10006623
mov esi, eax
lea eax, [ebp - 0x1090]
lea ecx, [ebp - 0x1030]
call fcn.10006643
mov edi, eax
lea eax, [ebp - 0x10c8]
lea ecx, [ebp - 0x1030]
call fcn.10006623
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x10c0]
push eax
call fcn.1000e7d2
add esp, 0x1c
test byte [0x10078dd8], 1
jne 0x10036af4
or dword [0x10078dd8], 1
mov byte [ebp - 4], 1
call fcn.10036e0e
push 0x100606d3
call fcn.100418cf
pop ecx
mov byte [ebp - 4], 0
and dword [ebp - 0x10b8], 0
push 8
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b4]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x10b8]
push eax
push 0
push dword [ebp - 0x107c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
test eax, eax
jne 0x10036b36
mov ecx, dword [ebp - 0x1078]
push str.default
call fcn.10001976
jmp 0x10036d50
push ebx
mov dword [ebp - 0x108c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [ebp - 0x1030]
push eax
lea eax, [ebp - 0x1080]
push eax
mov byte [ebp - 4], 2
call fcn.10036f48
mov eax, dword [0x10078cfc]
mov dword [ebp - 0x1084], eax
mov eax, dword [0x10078ce4]
lea edi, [ebp - 0x1088]
lea esi, [ebp - 0x1080]
mov dword [ebp - 0x1088], eax
call fcn.1001a3e4
test al, al
jne 0x10036bd0
lea edi, [ebp - 0x10a4]
call fcn.10016265
mov esi, eax
add esi, 0x1c
push 8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10036ba3
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x10036bd2
lea esi, [ebp - 0x1080]
call fcn.10016265
mov ecx, dword [ebp - 0x1078]
add eax, 0x24
push eax
call fcn.10001976
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
jmp 0x10036d52
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x1018], 8
mov eax, dword [ebp - 0x102c]
jae 0x10036bee
lea eax, [ebp - 0x102c]
push edi
push edi
push 3
push edi
push 3
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x107c], eax
mov byte [ebp - 4], 3
cmp eax, edi
je 0x10036c14
cmp eax, 0xffffffff
jne 0x10036c31
mov ecx, dword [ebp - 0x1078]
push str.default
call fcn.10001976
lea eax, [ebp - 0x107c]
call fcn.10002f69
jmp 0x10036bca
push 0xfff
lea eax, [ebp - 0x1013]
push edi
push eax
mov byte [ebp - 0x1014], 0
call fcn.10045640
add esp, 0xc
push edi
lea eax, [ebp - 0x1094]
push eax
mov esi, 0x1000
push esi
lea eax, [ebp - 0x1014]
push eax
push dword [ebp - 0x107c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x10e4]
push esi
push eax
lea ecx, [ebp - 0x1014]
call fcn.10035f7c
pop ecx
pop ecx
push 0xc
push 8
push eax
lea esi, [ebp - 0x104c]
mov byte [ebp - 4], 4
call fcn.10005504
push edi
push 1
lea ecx, [ebp - 0x10e4]
call fcn.10001e5b
push ebx
mov dword [ebp - 0x108c], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov byte [ebp - 4], 7
xor eax, eax
cmp dword [ebp - 0x1034], 0x10
push 9
pop ecx
lea edi, [ebp - 0x1070]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x10a4]
mov dword [ebp - 0x1074], eax
mov eax, dword [ebp - 0x10a0]
mov dword [ebp - 0x1070], eax
mov eax, dword [ebp - 0x1048]
jae 0x10036cf0
lea eax, [ebp - 0x1048]
push 0x20
push eax
lea eax, [ebp - 0x106c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
lea eax, [ebp - 0x1030]
push eax
call fcn.10036e6f
push 0xa
pop ecx
mov edi, eax
lea esi, [ebp - 0x1074]
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 - 0x1078]
lea eax, [ebp - 0x104c]
push eax
call fcn.10001998
push 0
push 1
lea ecx, [ebp - 0x104c]
call fcn.10001e5b
lea eax, [ebp - 0x107c]
call fcn.10002f69
push 0
push 1
lea esi, [ebp - 0x1030]
call fcn.10006669
mov eax, dword [ebp - 0x1078]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1003edc1
leave
ret