Function at 0x1000ca90
Capabilities:
Check os version
Enumerate files on windows

Disassembly:
sub esp, 0x2ec
push ebx
push ebp
mov ebp, dword [esp + 0x2f8]
push esi
cmp ebp, 0xffffffff
push edi
mov dword [esp + 0x10], 0
jne 0x1000cabb
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2ec
ret
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov edi, dword [esp + 0x30c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [eax + eax + 0x208]
push ecx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov al, byte [esp + 0x310]
mov edx, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
test al, 0x40
rep movsb byte es:[edi], byte [esi]
jne 0x1000cb46
mov eax, dword [esp + 0x34]
cmp eax, 2
je 0x1000cb3f
cmp eax, 1
jne 0x1000cb46
mov eax, dword [esp + 0x28]
cmp eax, 4
jb 0x1000cb3f
jne 0x1000cb46
cmp dword [esp + 0x2c], 0xa
jae 0x1000cb46
cmp word [esp + 0x30], 0x3e8
jae 0x1000cb46
push str.oem.inf
jmp 0x1000cb4b
push str..inf
push ebx
call fcn.100053d0
lea eax, [esp + 0xb8]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
jne 0x1000cb86
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call fcn.10001a20
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret
xor eax, eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
test byte [esp + 0xb8], 0x10
jne 0x1000cd3c
mov edi, dword [esp + 0x30c]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [esp + 0xe4]
mov edx, ecx
mov esi, edi
mov edi, ebx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.100053d0
push ebx
push 0
push 0xffffffffffffffff
push 0x10000
push 0xffffffffffffffff
push ebp
call fcn.10002290
add esp, 0x18
test eax, eax
je 0x1000cd3c
push 1
push 0
push ebp
call fcn.10001a60
add esp, 0xc
test eax, eax
je 0x1000cd3c
mov esi, dword [esp + 0x318]
mov eax, dword [esp + 0x310]
mov edi, dword [esp + 0x308]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x308]
lea edx, [esp + 0x1fc]
push 0x104
push edx
push esi
push eax
push edi
push ecx
push 0
push ebp
mov dword [esp + 0x38], 0
call fcn.1000d500
mov edx, dword [esp + 0x38]
add esp, 0x24
cmp edx, 0x104
jbe 0x1000cc8b
add edx, 0x10
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x314]
push ecx
push eax
mov eax, dword [esp + 0x310]
push esi
push edx
push edi
push eax
push 0
push ebp
call fcn.1000d500
mov edx, dword [esp + 0x38]
add esp, 0x24
test eax, eax
jbe 0x1000cd2f
lea edi, [esp + 0x1f8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x1c]
not ecx
dec ecx
test eax, eax
mov esi, ecx
jne 0x1000cd22
cmp dword [esp + 0x320], edx
jb 0x1000cd12
mov eax, dword [esp + 0x18]
test eax, eax
jbe 0x1000ccc3
inc dword [esp + 0x10]
mov edi, dword [esp + 0x31c]
lea ecx, [esp + 0x1f8]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x10]
lea edx, [edi + esi + 1]
or eax, 0xffffffff
mov dword [esp + 0x31c], edx
mov edx, dword [esp + 0x320]
sub eax, esi
add edx, eax
mov eax, dword [esp + 0x18]
add ecx, esi
inc eax
mov dword [esp + 0x320], edx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x18], eax
jmp 0x1000cd22
mov dword [esp + 0x1c], 0x7a
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x324]
test eax, eax
je 0x1000cd2f
add dword [eax], edx
push 1
push 0
push ebp
call fcn.10001aa0
add esp, 0xc
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0xb8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1000cb90
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebp
call fcn.10001a20
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2ec
ret