Function at 0x10039fc5
Capabilities:
Read file on windows

Disassembly:
push 0xb8
mov eax, 0x10078840
call fcn.100600fa
mov eax, dword [ebp + 8]
xor ebx, ebx
xor edi, edi
inc ebx
mov esi, ecx
mov dword [ebp - 0x8c], edi
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x88], esi
test byte [0x100a2174], bl
jne 0x1003a012
or dword [0x100a2174], ebx
mov dword [ebp - 4], edi
call fcn.1003cef0
push 0x10080bb7
call fcn.1005efa4
or dword [ebp - 4], 0xffffffff
pop ecx
cmp byte [0x1009cec6], 0
je 0x1003a02d
push 0x100a215c
mov byte [0x1009cec6], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 8
pop ecx
mov dword [ebp - 0xb4], edi
xor eax, eax
lea edi, [ebp - 0xb0]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0xb4]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [ebp - 0xb4], 0xffffffff
je 0x1003a29f
test byte [ebp - 0xb4], 0x10
jne 0x1003a29f
cmp dword [ebp - 0x98], 0
ja 0x1003a29f
cmp dword [ebp - 0x94], 0xa00000
ja 0x1003a29f
mov eax, esi
lea ecx, [ebp - 0x30]
call fcn.10007820
mov dword [ebp - 4], ebx
lea ebx, [ebp - 0xbc]
lea edi, [ebp - 0x30]
call fcn.1000c710
lea ebx, [ebp - 0x90]
mov esi, eax
call fcn.1000c760
lea ebx, [ebp - 0xc4]
mov dword [ebp - 0x80], eax
call fcn.1000c710
push dword [esi + 4]
mov ecx, dword [ebp - 0x80]
push dword [esi]
lea esi, [ebp - 0x84]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
call fcn.1000d9b0
add esp, 0x18
mov ebx, 0x100a215c
push ebx
mov dword [ebp - 0xb8], ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, edi
push eax
lea eax, [ebp - 0x84]
push eax
mov byte [ebp - 4], 2
call fcn.1003d045
mov eax, dword [0x100a2130]
mov dword [ebp - 0x8c], eax
mov eax, dword [0x100a2118]
lea edi, [ebp - 0x90]
lea esi, [ebp - 0x84]
mov dword [ebp - 0x90], eax
call fcn.1003ee1d
test al, al
jne 0x1003a19d
call fcn.10050abd
mov ecx, dword [eax + 0x1c]
mov dword [ebp - 0x78], ecx
mov ecx, dword [eax + 0x20]
add eax, 0x24
mov dword [ebp - 0x74], ecx
push eax
lea ecx, [ebp - 0x70]
call fcn.10007790
push 8
pop ecx
lea edi, [ebp - 0xa0]
lea esi, [ebp - 0x78]
xor eax, eax
mov byte [ebp - 4], 3
repe cmpsb byte [esi], byte es:[edi]
je 0x1003a165
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x1003a193
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x70]
push eax
call fcn.10007790
lea ecx, [ebp - 0x70]
call fcn.100077c0
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea esi, [ebp - 0x30]
call fcn.1002fe50
jmp 0x1003a2ac
lea ecx, [ebp - 0x70]
call fcn.100077c0
jmp 0x1003a19f
xor edi, edi
push edi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x34], 0xf
call fcn.100092a0
mov eax, dword [ebp - 0xa0]
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push dword [ebp - 0x88]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0x50], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x8c], esi
mov byte [ebp - 4], 5
cmp esi, edi
je 0x1003a280
cmp esi, 0xffffffff
je 0x1003a280
push dword [ebp - 0x94]
call fcn.1005f550
pop ecx
push edi
lea ecx, [ebp - 0x88]
push ecx
push dword [ebp - 0x94]
mov dword [ebp - 0x80], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003a277
mov eax, dword [ebp - 0x94]
cmp dword [ebp - 0x88], eax
jne 0x1003a277
push eax
push dword [ebp - 0x80]
lea esi, [ebp - 0x70]
call fcn.1003cea8
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 6
call fcn.10008360
mov ecx, esi
mov byte [ebp - 4], 5
call fcn.100077c0
lea eax, [ebp - 0x30]
push eax
call fcn.1003cf51
mov ecx, dword [ebp - 0x54]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x50]
push 0xffffffffffffffff
mov dword [eax + 4], ecx
push edi
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [eax + 8]
call fcn.10008360
push dword [ebp - 0x80]
call fcn.1005f473
pop ecx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x4c]
push eax
call fcn.10007790
lea ecx, [ebp - 0x8c]
call fcn.10001340
lea ecx, [ebp - 0x4c]
jmp 0x1003a17a
mov ecx, dword [ebp - 0x7c]
push 0x10083c5f
call fcn.10007750
mov eax, dword [ebp - 0x7c]
call fcn.1006017d
ret 4