Function at 0x10001480
Capabilities:
Check if file exists
Enumerate files on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa8c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x250
lea eax, [ebp - 0xa80]
mov esi, ecx
push 0
push eax
mov dword [ebp - 0xa88], esi
call fcn.10046690
add esp, 0xc
lea eax, [ebp - 0x828]
push 0x208
push 0
push eax
call fcn.10046690
add esp, 0xc
lea eax, [ebp - 0x418]
push 0x208
push 0
push eax
call fcn.10046690
add esp, 0xc
lea eax, [ebp - 0x620]
push 0x208
push 0
push eax
call fcn.10046690
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x208
push 0
push eax
call fcn.10046690
add esp, 0xc
lea eax, [ebp - 0x828]
xor edi, edi
xor ebx, ebx
mov dword [ebp - 0xa84], edi
push esi
push str._ws
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa80]
push eax
lea eax, [ebp - 0x828]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0xa8c], esi
test esi, esi
je 0x1000173e
cmp esi, 0xffffffff
je 0x1000173e
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
nop
cmp word [ebp - 0xa54], 0x2e
je 0x1000170c
mov ecx, 0x208
lea eax, [ebp - 0x418]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10001580
mov ecx, 0x208
lea eax, [ebp - 0x620]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10001596
push str.wtoolex
lea eax, [ebp - 0xa54]
push eax
push dword [ebp - 0xa88]
lea eax, [ebp - 0x418]
push str._ws_ws_wswpsupdate.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0xa54]
push str.wtoolex
push eax
push dword [ebp - 0xa88]
lea eax, [ebp - 0x620]
push str._ws_ws_wsupdateself.exe
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x418]
push eax
call esi
test eax, eax
je 0x1000170c
lea eax, [ebp - 0x620]
push eax
call esi
test eax, eax
je 0x1000170c
mov ecx, 0x208
lea eax, [ebp - 0x210]
nop dword [eax]
mov byte [eax], 0
lea eax, [eax + 1]
sub ecx, 1
jne 0x10001620
push str.wtoolex
lea eax, [ebp - 0xa54]
push eax
push dword [ebp - 0xa88]
lea eax, [ebp - 0x210]
push str._ws_ws_wsksolite.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x210]
push eax
call esi
test eax, eax
jne 0x1000170c
test edi, edi
jne 0x100016b2
push 0x200000
push 0x40
mov dword [ebp - 0xa84], edi
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov ebx, eax
test ebx, ebx
je 0x1000170c
xor esi, esi
test edi, edi
jne 0x100016b2
push ecx
lea eax, [ebp - 0xa84]
push eax
push str._wps
push ecx
mov ecx, ebx
call fcn.10002310
mov edi, dword [ebp - 0xa84]
inc esi
add esp, 0x10
cmp esi, 0x64
jb 0x10001686
test edi, edi
je 0x10001706
push 0
push 0
push 4
push 0
push 7
push 0xc0000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
test esi, esi
je 0x10001706
cmp esi, 0xffffffff
je 0x10001706
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push 0
lea eax, [ebp - 0x82c]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0xa80]
push eax
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10001560
push dword [ebp - 0xa8c]
call dword [sym.imp.KERNEL32.dll_FindClose]
test ebx, ebx
je 0x1000173e
push ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10045387
mov esp, ebp
pop ebp
ret