Function at 0x409210
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 0x409218
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 0x4097e1
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x41ab68
mov edx, 0x4097f8
call fcn.0040325c
call fcn.0040723c
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x409888
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, 0x409894
call fcn.0040325c
cmp esi, 0xffffffff
je 0x4097a1
lea eax, [ebp - 8]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.00403374
test byte [ebp - 0x150], 0x10
je 0x409302
mov eax, dword [ebp - 8]
mov edx, 0x4098f8
call fcn.004034d8
je 0x40978c
mov eax, dword [ebp - 8]
mov edx, 0x409904
call fcn.004034d8
je 0x40978c
push dword [ebp - 4]
push dword [ebp - 8]
push 0x409910
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.0040344c
mov eax, dword [ebp - 0x158]
call fcn.00409210
jmp 0x40978c
cmp word [0x4191f4], 0
jne 0x409312
inc dword [0x41ab8c]
mov eax, dword [0x41ab8c]
cmp eax, dword [0x41ab88]
jl 0x40978c
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 0x409368
mov bl, 3
jmp 0x40936a
mov bl, 1
cmp bl, 3
jne 0x409433
mov eax, dword [0x41ab58]
call fcn.0040338c
test eax, eax
jne 0x409388
mov bl, 2
jmp 0x409433
mov edi, dword [ebp - 0x130]
cmp edi, 0x9600000
jbe 0x40939d
mov bl, 2
jmp 0x409433
mov eax, dword [ebp - 0xc]
mov edx, 0x40991c
call fcn.004034d8
jne 0x4093dc
cmp edi, 0x7530
jae 0x4093b8
mov bl, 2
jmp 0x409433
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 0x409433
mov bl, 2
jmp 0x409433
mov edx, dword [ebp - 8]
mov eax, dword [0x41adbc]
call fcn.00403624
test eax, eax
je 0x409433
mov edx, dword [ebp - 8]
mov eax, dword [0x41adc0]
call fcn.00403624
test eax, eax
jne 0x409433
mov edx, dword [ebp - 8]
mov eax, dword [0x41adc4]
call fcn.00403624
test eax, eax
jne 0x409433
mov edx, dword [ebp - 8]
mov eax, dword [0x41adc8]
call fcn.00403624
test eax, eax
jne 0x409433
mov edx, dword [ebp - 8]
mov eax, dword [0x41adcc]
call fcn.00403624
test eax, eax
jne 0x409433
mov bl, 2
mov eax, 0x41ab68
mov edx, 0x409928
call fcn.0040325c
cmp bl, 3
jne 0x4094d9
inc word [0x4191f4]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00408878
test al, al
je 0x40948f
mov eax, 0x41ab6c
mov edx, dword [ebp - 4]
call fcn.0040325c
lea eax, [ebp - 0x164]
mov ecx, 0x409910
mov edx, dword [0x41ab54]
call fcn.004033d8
mov eax, dword [ebp - 0x164]
call fcn.00409210
push dword [0x41ab38]
push 0x409990
lea edx, [ebp - 0x16c]
movzx eax, word [0x4191f4]
call fcn.004048e0
push dword [ebp - 0x16c]
push 0x40999c
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 0x409745
cmp dword [0x41ab98], 0x64
setl dl
sub dl, 1
jb 0x409535
jne 0x409548
mov edx, dword [0x41acc8]
mov eax, dword [ebp - 0xc]
call fcn.00403624
test eax, eax
jle 0x40950b
mov al, 1
jmp 0x409548
mov edx, dword [0x41acc4]
mov eax, dword [ebp - 0xc]
call fcn.00403624
test eax, eax
jle 0x409521
xor eax, eax
jmp 0x409548
cmp dword [ebp - 0x130], 0xa00000
ja 0x409531
mov al, 1
jmp 0x409548
xor eax, eax
jmp 0x409548
mov edx, dword [0x41acc8]
mov eax, dword [ebp - 0xc]
call fcn.00403624
test eax, eax
setg al
test al, al
je 0x409745
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.00407804
mov eax, dword [ebp - 0x10]
call fcn.0040338c
test eax, eax
jle 0x409745
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 0x409695
push 0x4099ac
lea edx, [ebp - 0x178]
mov eax, dword [0x41ab9c]
call fcn.004048e0
push dword [ebp - 0x178]
push 0x4099c0
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.0040fec0
push 0xc8
mov ecx, dword [0x41ad4c]
mov edx, dword [0x41ad14]
mov eax, 0x80000002
call fcn.00406004
push 0x4099cc
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 0x4096c1
push 0x4099d8
push dword [ebp - 4]
push dword [ebp - 8]
push 0x4099d8
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.0040344c
jmp 0x40970c
push 0x4099d8
lea edx, [ebp - 0x180]
movzx eax, word [0x4191f4]
call fcn.004048e0
push dword [ebp - 0x180]
push 0x4099e4
push dword [0x41ab6c]
push dword [0x41ab64]
push 0x4099f0
push dword [ebp - 8]
push 0x4099d8
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 0x40978c
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 0x409295
push esi
call sub.kernel32.dll_FindClose
mov eax, 0x41ab68
mov edx, 0x4099fc
call fcn.0040325c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4097e8
lea eax, [ebp - 0x184]
mov edx, 0xd
call fcn.0040322c
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.0040322c
ret