Function at 0x456114
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 0x45611c
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404a14
xor eax, eax
push ebp
push 0x4566cd
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004508f0
lea eax, [ebp - 0x150]
push eax
lea eax, [ebp - 0x154]
mov ecx, 0x4566e4
mov edx, dword [ebp - 4]
call fcn.00404870
mov eax, dword [ebp - 0x154]
call fcn.00404a24
push eax
call sub.kernel32.dll_FindFirstFileA_1
mov esi, eax
mov eax, 0x467080
mov edx, 0x4566f0
call fcn.004045b8
cmp esi, 0xffffffff
je 0x45669c
lea eax, [ebp - 8]
lea edx, [ebp - 0x124]
mov ecx, 0x104
call fcn.004047d4
test byte [ebp - 0x150], 0x10
je 0x4561f7
mov eax, dword [ebp - 8]
mov edx, 0x456724
call fcn.00404970
je 0x456687
mov eax, dword [ebp - 8]
mov edx, 0x456730
call fcn.00404970
je 0x456687
push dword [ebp - 4]
push dword [ebp - 8]
push 0x45673c
lea eax, [ebp - 0x158]
mov edx, 3
call fcn.004048e4
mov eax, dword [ebp - 0x158]
call fcn.00456114
jmp 0x456687
cmp word [0x464e8c], 0
jne 0x456207
inc dword [0x4670ac]
mov eax, dword [0x4670ac]
cmp eax, dword [0x4670a8]
jl 0x456687
lea eax, [ebp - 0x15c]
push eax
mov eax, dword [ebp - 8]
call fcn.00404824
mov edx, eax
sub edx, 2
mov ecx, 3
mov eax, dword [ebp - 8]
call fcn.00404a84
mov eax, dword [ebp - 0x15c]
lea edx, [ebp - 0xc]
call fcn.00407a18
mov edx, dword [0x467074]
mov eax, dword [ebp - 0xc]
call fcn.00404b68
test eax, eax
je 0x45625d
mov bl, 3
jmp 0x45625f
mov bl, 1
cmp bl, 3
jne 0x456328
mov eax, dword [0x467070]
call fcn.00404824
test eax, eax
jne 0x45627d
mov bl, 2
jmp 0x456328
mov edi, dword [ebp - 0x130]
cmp edi, 0x9600000
jbe 0x456292
mov bl, 2
jmp 0x456328
mov eax, dword [ebp - 0xc]
mov edx, 0x456748
call fcn.00404970
jne 0x4562d1
cmp edi, 0x7530
jae 0x4562ad
mov bl, 2
jmp 0x456328
lea eax, [ebp - 0x160]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404870
mov eax, dword [ebp - 0x160]
call fcn.00407d08
test al, al
jne 0x456328
mov bl, 2
jmp 0x456328
mov edx, dword [ebp - 8]
mov eax, 0x456754
call fcn.00404b68
test eax, eax
je 0x456328
mov edx, dword [ebp - 8]
mov eax, 0x456764
call fcn.00404b68
test eax, eax
jne 0x456328
mov edx, dword [ebp - 8]
mov eax, 0x456778
call fcn.00404b68
test eax, eax
jne 0x456328
mov edx, dword [ebp - 8]
mov eax, 0x45678c
call fcn.00404b68
test eax, eax
jne 0x456328
mov edx, dword [ebp - 8]
mov eax, 0x4567a4
call fcn.00404b68
test eax, eax
jne 0x456328
mov bl, 2
mov eax, 0x467080
mov edx, 0x4567bc
call fcn.004045b8
cmp bl, 3
jne 0x4563ce
inc word [0x464e8c]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00455740
test al, al
je 0x456384
mov eax, 0x46708c
mov edx, dword [ebp - 4]
call fcn.004045b8
lea eax, [ebp - 0x164]
mov ecx, 0x45673c
mov edx, dword [0x46706c]
call fcn.00404870
mov eax, dword [ebp - 0x164]
call fcn.00456114
push dword [0x46704c]
push 0x456884
lea edx, [ebp - 0x16c]
movzx eax, word [0x464e8c]
call fcn.00407994
push dword [ebp - 0x16c]
push 0x456890
lea eax, [ebp - 0x168]
mov edx, 4
call fcn.004048e4
mov eax, dword [ebp - 0x168]
call fcn.00407ec0
dec word [0x464e8c]
mov eax, 0x467080
mov edx, 0x4568a0
call fcn.004045b8
xor eax, eax
cmp bl, 1
jne 0x456633
cmp dword [ebp - 0x130], 0xa00000
ja 0x456633
cmp dword [0x4670b8], 0x64
setl dl
sub dl, 1
jb 0x45641d
jne 0x45642f
mov edx, 0x456918
mov eax, dword [ebp - 0xc]
call fcn.00404b68
test eax, eax
sete al
jmp 0x45642f
mov edx, 0x456a4c
mov eax, dword [ebp - 0xc]
call fcn.00404b68
test eax, eax
setne al
test al, al
je 0x456633
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404870
mov eax, dword [ebp - 0x170]
lea edx, [ebp - 0x10]
call fcn.0045431c
mov eax, dword [ebp - 0x10]
call fcn.00404824
test eax, eax
jle 0x456633
push 0
push 0x80
push 4
push 0
push 0
push 0x40000000
mov eax, dword [0x46703c]
call fcn.00404a24
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [0x4670d4], eax
push 2
push 0
push 0
mov eax, dword [0x4670d4]
push eax
call sub.kernel32.dll_SetFilePointer_1
push 0
mov eax, dword [0x4670d4]
push eax
call sub.kernel32.dll_GetFileSize_1
mov dword [0x4670bc], eax
cmp dword [0x4670bc], 0xed800
jle 0x456574
push 0x456a98
lea edx, [ebp - 0x178]
mov eax, dword [0x4670bc]
call fcn.00407994
push dword [ebp - 0x178]
push 0x456aac
lea edx, [ebp - 0x17c]
mov eax, 0xed800
call fcn.00407994
push dword [ebp - 0x17c]
lea eax, [ebp - 0x174]
mov edx, 4
call fcn.004048e4
mov eax, dword [ebp - 0x174]
call fcn.004627dc
push 0xc8
mov ecx, 0x456ab8
mov edx, 0x456ac8
mov eax, 0x80000002
call fcn.00408fcc
push 0x456b10
mov edx, 0x456ac8
mov ecx, 0x456b1c
mov eax, 0x80000002
call fcn.00408edc
push 0
mov edx, 0x456ac8
mov ecx, 0x456b2c
mov eax, 0x80000002
call fcn.00408fcc
push 0
mov edx, 0x456ac8
mov ecx, 0x456b3c
mov eax, 0x80000002
call fcn.00408fcc
call fcn.004043f8
cmp word [0x464e8c], 0
jne 0x4565a0
push 0x456b4c
push dword [ebp - 4]
push dword [ebp - 8]
push 0x456b4c
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 5
call fcn.004048e4
jmp 0x4565eb
push 0x456b4c
lea edx, [ebp - 0x180]
movzx eax, word [0x464e8c]
call fcn.00407994
push dword [ebp - 0x180]
push 0x456b58
push dword [0x46708c]
push dword [0x46707c]
push 0x456b64
push dword [ebp - 8]
push 0x456b4c
push dword [ebp - 0x10]
lea eax, [ebp - 0x10]
mov edx, 9
call fcn.004048e4
push 0
push 0x4670c4
mov eax, dword [ebp - 0x10]
call fcn.00404824
push eax
lea eax, [ebp - 0x10]
call fcn.00404a7c
push eax
mov eax, dword [0x4670d4]
push eax
call sub.kernel32.dll_WriteFile_1
mov eax, 0x467080
mov edx, 0x456b70
call fcn.004045b8
mov eax, dword [0x4670d4]
push eax
call sub.kernel32.dll_CloseHandle_1
lea eax, [ebp - 0x10]
xor edx, edx
call fcn.00404bb0
cmp word [0x464e8c], 0
jne 0x456678
mov edx, 0x456b2c
mov ecx, dword [0x4670ac]
mov eax, dword [0x4670e4]
call fcn.0040925c
lea eax, [ebp - 0x184]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404870
mov ecx, dword [ebp - 0x184]
mov edx, 0x456b1c
mov eax, dword [0x4670e4]
call fcn.004091b0
mov eax, 0x467080
mov edx, 0x456bf0
call fcn.004045b8
lea eax, [ebp - 0x150]
push eax
push esi
call sub.kernel32.dll_FindNextFileA
test eax, eax
jne 0x45618a
push esi
call sub.kernel32.dll_FindClose_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4566d4
lea eax, [ebp - 0x184]
mov edx, 0xd
call fcn.00404588
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00404588
ret