Function at 0x4093a4
Capabilities:
Enumerate files on windows
Enumerate files recursively
Get file size
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x30
push 0
push 0
dec ecx
jne 0x4093ac
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.0040357c
xor eax, eax
push ebp
push 0x409975
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004076b8
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x40998c
mov edx, dword [ebp - 4]
call fcn.004033d8
mov eax, dword [ebp - 0x154]
call fcn.0040358c
push eax
call sub.kernel32.dll_FindFirstFileA
mov esi, eax
mov eax, 0x41ab68
mov edx, 0x409998
call fcn.0040325c
cmp esi, 0xffffffff
je 0x409935
lea eax, [ebp - 8]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00403374
test byte [ebp - 0x150], 0x10
je 0x409487
mov eax, dword [ebp - 8]
mov edx, 0x4099d4
call fcn.004034d8
je 0x409920
mov eax, dword [ebp - 8]
mov edx, 0x4099e0
call fcn.004034d8
je 0x409920
push dword [ebp - 4]
push dword [ebp - 8]
push 0x4099ec
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.0040344c
mov eax, dword [ebp - 0x158]
call fcn.004093a4
jmp 0x409920
cmp word [0x4191f4], 0
jne 0x409497
inc dword [0x41ab8c]
mov eax, dword [0x41ab8c]
cmp eax, dword [0x41ab88]
jl 0x409920
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 8]
call fcn.0040338c
mov edx, eax
sub edx, 2
mov ecx, 3
mov eax, dword [ebp - 8]
call fcn.004035e4
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0xc]
call fcn.00404964
mov edx, dword [0x41ab5c]
mov eax, dword [ebp - 0xc]
call fcn.00403624
test eax, eax
je 0x4094ed
mov bl, 3
jmp 0x4094ef
mov bl, 1
mov eax, 0x41ab68
mov edx, 0x4099f8
call fcn.0040325c
cmp bl, 3
jne 0x4095c7
mov eax, dword [0x41ab58]
call fcn.0040338c
test eax, eax
jne 0x40951c
mov bl, 2
jmp 0x4095c7
mov edi, dword [ebp - 0x130]
cmp edi, 0x9600000
jbe 0x409531
mov bl, 2
jmp 0x4095c7
mov eax, dword [ebp - 0xc]
mov edx, 0x409a20
call fcn.004034d8
jne 0x409570
cmp edi, 0x7530
jae 0x40954c
mov bl, 2
jmp 0x4095c7
lea eax, [ebp - 0x160]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004033d8
mov eax, dword [ebp - 0x160]
call fcn.00404c54
test al, al
jne 0x4095c7
mov bl, 2
jmp 0x4095c7
mov edx, dword [ebp - 8]
mov eax, dword [0x41adbc]
call fcn.00403624
test eax, eax
je 0x4095c7
mov edx, dword [ebp - 8]
mov eax, dword [0x41adc0]
call fcn.00403624
test eax, eax
jne 0x4095c7
mov edx, dword [ebp - 8]
mov eax, dword [0x41adc4]
call fcn.00403624
test eax, eax
jne 0x4095c7
mov edx, dword [ebp - 8]
mov eax, dword [0x41adc8]
call fcn.00403624
test eax, eax
jne 0x4095c7
mov edx, dword [ebp - 8]
mov eax, dword [0x41adcc]
call fcn.00403624
test eax, eax
jne 0x4095c7
mov bl, 2
mov eax, 0x41ab68
mov edx, 0x409a2c
call fcn.0040325c
cmp bl, 3
jne 0x40966d
inc word [0x4191f4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408c88
test al, al
je 0x409623
mov eax, 0x41ab6c
mov edx, dword [ebp - 4]
call fcn.0040325c
lea eax, [ebp - 0x164]
mov ecx, 0x4099ec
mov edx, dword [0x41ab54]
call fcn.004033d8
mov eax, dword [ebp - 0x164]
call fcn.004093a4
push dword [0x41ab38]
push 0x409b04
lea edx, [ebp - 0x16c]
movzx eax, word [0x4191f4]
call fcn.004048e0
push dword [ebp - 0x16c]
push 0x409b10
lea eax, [ebp - 0x168]
mov edx, 4
call fcn.0040344c
mov eax, dword [ebp - 0x168]
call fcn.00404e0c
dec word [0x4191f4]
xor eax, eax
cmp bl, 1
jne 0x4098d9
cmp dword [0x41ab98], 0x64
setl dl
sub dl, 1
jb 0x4096c9
jne 0x4096dc
mov edx, dword [0x41acc8]
mov eax, dword [ebp - 0xc]
call fcn.00403624
test eax, eax
jle 0x40969f
mov al, 1
jmp 0x4096dc
mov edx, dword [0x41acc4]
mov eax, dword [ebp - 0xc]
call fcn.00403624
test eax, eax
jle 0x4096b5
xor eax, eax
jmp 0x4096dc
cmp dword [ebp - 0x130], 0xa00000
ja 0x4096c5
mov al, 1
jmp 0x4096dc
xor eax, eax
jmp 0x4096dc
mov edx, dword [0x41acc8]
mov eax, dword [ebp - 0xc]
call fcn.00403624
test eax, eax
setg al
test al, al
je 0x4098d9
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004033d8
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x10]
call fcn.00407ce8
mov eax, dword [ebp - 0x10]
call fcn.0040338c
test eax, eax
jle 0x4098d9
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x41ab28]
call fcn.0040358c
push eax
call sub.kernel32.dll_CreateFileA
mov dword [0x41abb4], eax
push 2
push 0
push 0
mov eax, dword [0x41abb4]
push eax
call sub.kernel32.dll_SetFilePointer
push 0
mov eax, dword [0x41abb4]
push eax
call sub.kernel32.dll_GetFileSize
mov dword [0x41ab9c], eax
cmp dword [0x41ab9c], 0xed800
jle 0x409829
push 0x409b20
lea edx, [ebp - 0x178]
mov eax, dword [0x41ab9c]
call fcn.004048e0
push dword [ebp - 0x178]
push 0x409b34
lea edx, [ebp - 0x17c]
mov eax, 0xed800
call fcn.004048e0
push dword [ebp - 0x17c]
lea eax, [ebp - 0x174]
mov edx, 4
call fcn.0040344c
mov eax, dword [ebp - 0x174]
call fcn.0040fd78
push 0xc8
mov ecx, dword [0x41ad4c]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00406004
push 0x409b40
mov ecx, dword [0x41ad18]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00405f14
push 0
mov ecx, dword [0x41ad20]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00406004
push 0
mov ecx, dword [0x41ad1c]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00406004
call fcn.0040309c
cmp word [0x4191f4], 0
jne 0x409855
push 0x409b4c
push dword [ebp - 4]
push dword [ebp - 8]
push 0x409b4c
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.0040344c
jmp 0x4098a0
push 0x409b4c
lea edx, [ebp - 0x180]
movzx eax, word [0x4191f4]
call fcn.004048e0
push dword [ebp - 0x180]
push 0x409b58
push dword [0x41ab6c]
push dword [0x41ab64]
push 0x409b64
push dword [ebp - 8]
push 0x409b4c
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 9
call fcn.0040344c
push 0
push 0x41aba4
mov eax, dword [ebp - 0x10]
call fcn.0040338c
push eax
lea eax, [ebp - 0x10]
call fcn.004035dc
push eax
mov eax, dword [0x41abb4]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, dword [0x41abb4]
push eax
call sub.kernel32.dll_CloseHandle
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.0040366c
cmp word [0x4191f4], 0
jne 0x409920
mov ecx, dword [0x41ab8c]
mov edx, dword [0x41ad20]
mov eax, dword [0x41abc4]
call fcn.004061f0
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.004033d8
mov ecx, dword [ebp - 0x184]
mov edx, dword [0x41ad18]
mov eax, dword [0x41abc4]
call fcn.00406144
lea eax, [ebp - 0x150]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x40941a
push esi
call sub.kernel32.dll_FindClose
mov eax, 0x41ab68
mov edx, 0x409b70
call fcn.0040325c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40997c
lea eax, [ebp - 0x184]
mov edx, 0xd
call fcn.0040322c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040322c
ret