Function at 0x1002428c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003fcbf
mov eax, dword fs:[0]
push eax
mov eax, 0x10d4
call fcn.10034030
mov eax, dword [0x1004e060]
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
and dword [ebp - 0x1078], 0
mov edi, ecx
mov esi, edx
mov dword [ebp - 0x1074], edi
mov dword [ebp - 0x1080], esi
call fcn.10024270
test esi, esi
jne 0x100242f1
push str.default
mov ecx, edi
call fcn.10001a00
mov eax, edi
jmp 0x100245d4
mov eax, esi
lea ecx, [ebp - 0x102c]
call fcn.10001aa0
and dword [ebp - 4], 0
lea ebx, [ebp - 0x1088]
lea edi, [ebp - 0x102c]
call fcn.1000f410
lea ebx, [ebp - 0x10c0]
mov esi, eax
call fcn.1000f460
lea ebx, [ebp - 0x10b8]
mov dword [ebp - 0x1078], eax
call fcn.1000f410
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.100104d0
add esp, 0x18
test byte [0x100526fc], 1
jne 0x1002437c
or dword [0x100526fc], 1
mov byte [ebp - 4], 1
call fcn.10025043
push 0x10040e34
call fcn.100286f0
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 0x100243be
mov ecx, dword [ebp - 0x1074]
push str.default
call fcn.10001a00
jmp 0x100245c3
mov ebx, 0x100518a4
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.10025179
mov eax, dword [0x10052674]
mov dword [ebp - 0x1084], eax
mov eax, dword [0x1005265c]
lea edi, [ebp - 0x1088]
lea esi, [ebp - 0x107c]
mov dword [ebp - 0x1088], eax
call fcn.1002076f
test al, al
jne 0x1002445c
lea edi, [ebp - 0x109c]
call fcn.100255ee
mov esi, eax
add esi, 0x1c
push 8
pop ecx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10024430
sbb eax, eax
sbb eax, 0xffffffff
xor edi, edi
cmp eax, edi
jne 0x1002445e
lea esi, [ebp - 0x107c]
call fcn.100255ee
mov ecx, dword [ebp - 0x1074]
add eax, 0x24
push eax
call fcn.10001a00
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x100245c3
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [ebp - 0x1014], 8
mov eax, dword [ebp - 0x1028]
jae 0x1002447a
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 0x100244a2
cmp esi, 0xffffffff
jne 0x100244b7
mov ecx, dword [ebp - 0x1074]
push str.default
call fcn.10001a00
jmp 0x100245b8
push 0xfff
lea eax, [ebp - 0x100f]
push edi
push eax
mov byte [ebp - 0x1010], 0
call fcn.1002aad0
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.100278ba
pop ecx
push eax
lea esi, [ebp - 0x1048]
mov byte [ebp - 4], 4
call fcn.10024244
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 0x10024567
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.100250a4
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.100089e0
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.100283ef
leave
ret