Function at 0x1003f19d
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10069b93
mov eax, dword fs:[0]
push eax
sub esp, 0xc8
mov eax, dword [0x10080060]
xor eax, esp
mov dword [esp + 0xc0], eax
push ebx
push esi
push edi
mov eax, dword [0x10080060]
xor eax, esp
push eax
lea eax, [esp + 0xd8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov esi, ecx
mov dword [esp + 0x1c], edi
test byte [0x10106ec0], 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
jne 0x1003f21f
or dword [0x10106ec0], 1
mov dword [esp + 0xe0], edi
call fcn.100411d7
push 0x1006e10f
call fcn.100530b4
or dword [esp + 0xe4], 0xffffffff
pop ecx
cmp byte [0x10081f05], 0
mov ebx, 0x10106ea8
je 0x1003f23b
push ebx
mov byte [0x10081f05], 0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 8
pop ecx
mov dword [esp + 0x30], edi
xor eax, eax
lea edi, [esp + 0x34]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x30]
push eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [esp + 0x30], 0xffffffff
je 0x1003f4e4
test byte [esp + 0x30], 0x10
jne 0x1003f4e4
cmp dword [esp + 0x4c], 0
ja 0x1003f4e4
cmp dword [esp + 0x50], 0xa00000
ja 0x1003f4e4
push esi
lea ecx, [esp + 0x70]
call fcn.100082b0
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x70]
mov dword [esp + 0xe4], 1
call fcn.10037620
mov esi, eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x70]
call fcn.10037650
mov edi, eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x70]
call fcn.10037620
push fcn.10053578
push dword [esi + 4]
push dword [esi]
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x78]
push eax
call fcn.10038f70
add esp, 0x20
push ebx
lea ecx, [esp + 0x20]
call fcn.10033a00
lea eax, [esp + 0x6c]
push eax
lea ebx, [esp + 0x24]
mov byte [esp + 0xe4], 2
call fcn.10040fc7
push dword [0x10106ea0]
lea esi, [esp + 0x2c]
call fcn.100414ba
mov edi, esi
mov esi, ebx
call fcn.10041504
test al, al
jne 0x1003f3bd
call fcn.100414d9
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x88], ecx
mov ecx, dword [eax + 0x20]
add eax, 0x24
mov dword [esp + 0x8c], ecx
push eax
lea ecx, [esp + 0x94]
call fcn.100025d0
push 8
pop ecx
lea edi, [esp + 0x44]
lea esi, [esp + 0x88]
xor eax, eax
mov byte [esp + 0xe0], 3
repe cmpsb byte [esi], byte es:[edi]
je 0x1003f375
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x1003f3af
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x90]
push eax
call fcn.100025d0
lea ecx, [esp + 0x90]
call fcn.10002610
lea ecx, [esp + 0x1c]
call fcn.10033a30
lea ecx, [esp + 0x6c]
call fcn.10002740
jmp 0x1003f4f2
lea ecx, [esp + 0x90]
call fcn.10002610
jmp 0x1003f3bf
xor edi, edi
lea ecx, [esp + 0xb4]
call fcn.10002560
mov eax, dword [esp + 0x44]
push edi
push edi
push 3
push edi
push 7
push 0x80000000
push dword [esp + 0x30]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
lea ecx, [esp + 0x18]
call fcn.10015340
mov byte [esp + 0xe0], 5
cmp dword [esp + 0x14], edi
je 0x1003f4be
cmp dword [esp + 0x14], 0xffffffff
je 0x1003f4be
push dword [esp + 0x50]
call fcn.1005368c
pop ecx
mov esi, eax
push edi
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x58]
lea ecx, [esp + 0x20]
push esi
call fcn.10015380
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1003f4b7
mov eax, dword [esp + 0x50]
cmp dword [esp + 0x18], eax
jne 0x1003f4b7
push eax
push esi
lea ecx, [esp + 0x90]
call fcn.10018970
push eax
lea ecx, [esp + 0xb8]
mov byte [esp + 0xe4], 6
call fcn.10002630
lea ecx, [esp + 0x88]
mov byte [esp + 0xe0], 5
call fcn.10002610
lea eax, [esp + 0x6c]
push eax
call fcn.10040eb8
mov ecx, dword [esp + 0xac]
mov dword [eax], ecx
mov ecx, dword [esp + 0xb0]
mov dword [eax + 4], ecx
lea ecx, [esp + 0xb4]
push ecx
lea ecx, [eax + 8]
call fcn.10002630
push esi
call fcn.100535af
pop ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xb4]
push eax
call fcn.100025d0
lea ecx, [esp + 0x14]
call fcn.10015360
lea ecx, [esp + 0xb4]
jmp 0x1003f393
mov ecx, dword [esp + 0x10]
push 0x1007558d
call fcn.10002590
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xd8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.10052989
mov esp, ebp
pop ebp
ret 4