Function at 0x10001c1a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100534b6
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x1006d144]
xor eax, esp
mov dword [esp + 0xb0], eax
push ebx
push esi
push edi
mov eax, dword [0x1006d144]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], ebx
test byte [0x10072ca4], 1
mov dword [esp + 0x14], eax
jne 0x10001c9d
or dword [0x10072ca4], 1
mov dword [esp + 0xd0], ebx
call fcn.1000517a
push 0x1005638b
call fcn.1003c3b2
or dword [esp + 0xd4], 0xffffffff
pop ecx
mov esi, 0x10072c8c
cmp byte [0x1006effc], bl
je 0x10001cb7
push esi
mov byte [0x1006effc], bl
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
push 8
pop ecx
xor eax, eax
mov dword [esp + 0x28], ebx
lea edi, [esp + 0x2c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x28]
push eax
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
cmp dword [esp + 0x28], 0xffffffff
je 0x10001f62
test byte [esp + 0x28], 0x10
jne 0x10001f62
cmp dword [esp + 0x44], ebx
ja 0x10001f62
cmp dword [esp + 0x48], 0xa00000
ja 0x10001f62
push dword [esp + 0x14]
lea ecx, [esp + 0x60]
call fcn.10004aec
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0xd4], 1
call fcn.10004b34
mov edi, eax
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x60]
call fcn.10004b54
mov dword [esp + 0x18], eax
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x60]
call fcn.10004b34
mov ecx, dword [esp + 0x18]
push fcn.1003c1b1
push dword [edi + 4]
push dword [edi]
push dword [ecx + 4]
push dword [ecx]
push dword [eax + 4]
push dword [eax]
lea eax, [esp + 0x34]
push eax
call fcn.100090aa
add esp, 0x20
push esi
mov dword [esp + 0x50], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xd8], 2
call fcn.100052e0
mov eax, dword [0x10072c84]
mov dword [esp + 0x1c], eax
mov eax, dword [0x10072c6c]
lea edi, [esp + 0x18]
lea esi, [esp + 0x20]
mov dword [esp + 0x18], eax
call fcn.1001b29e
test al, al
jne 0x10001e4a
call fcn.10006283
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x78], ecx
mov ecx, dword [eax + 0x20]
add eax, 0x24
mov dword [esp + 0x7c], ecx
push eax
lea ecx, [esp + 0x84]
call fcn.10004a81
push 8
pop ecx
lea edi, [esp + 0x3c]
lea esi, [esp + 0x78]
xor eax, eax
mov byte [esp + 0xd0], 3
repe cmpsb byte [esi], byte es:[edi]
je 0x10001dfb
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10001e3b
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x80]
push eax
call fcn.10004a81
lea ecx, [esp + 0x80]
push ebx
push 1
call fcn.10005814
push 0x10072c8c
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push ebx
push 1
lea ecx, [esp + 0x64]
call fcn.10005a26
jmp 0x10001f70
push ebx
push 1
lea ecx, [esp + 0x88]
call fcn.10005814
lea ecx, [esp + 0xa4]
call fcn.10004a26
mov eax, dword [esp + 0x3c]
push ebx
push ebx
push 3
push ebx
push 7
push SysReAllocString
push dword [esp + 0x2c]
mov dword [esp + 0xb8], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0xbc], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [esp + 0x14], esi
mov byte [esp + 0xd0], 5
cmp esi, ebx
je 0x10001f3c
cmp esi, 0xffffffff
je 0x10001f3c
push dword [esp + 0x48]
call fcn.1003daf9
pop ecx
push ebx
mov edi, eax
lea eax, [esp + 0x1c]
push eax
push dword [esp + 0x50]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10001f35
mov eax, dword [esp + 0x48]
cmp dword [esp + 0x18], eax
jne 0x10001f35
push eax
push edi
lea esi, [esp + 0x80]
call fcn.10004a3b
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0xb0]
mov byte [esp + 0xdc], 6
call fcn.100056ed
push ebx
push 1
mov ecx, esi
mov byte [esp + 0xd8], 5
call fcn.10005814
lea eax, [esp + 0x5c]
push eax
call fcn.100051de
mov ecx, dword [esp + 0x9c]
mov dword [eax], ecx
mov ecx, dword [esp + 0xa0]
push 0xffffffffffffffff
mov dword [eax + 4], ecx
push ebx
lea ecx, [esp + 0xac]
push ecx
lea ecx, [eax + 8]
call fcn.100056ed
push edi
call fcn.1003dbc3
pop ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0xa4]
push eax
call fcn.10004a81
lea ecx, [esp + 0x14]
call fcn.10001336
lea ecx, [esp + 0xa4]
jmp 0x10001e17
mov ecx, dword [esp + 0x10]
push 0x1005d1eb
call fcn.10004a5f
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.1003b824
mov esp, ebp
pop ebp
ret 8