Function at 0x40cbd0
Capabilities:
Enumerate files on windows
Read file on windows
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x432e61
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x446050]
xor eax, esp
mov dword [esp + 0x1a0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x446050]
xor eax, esp
push eax
lea eax, [esp + 0x1b8]
mov dword fs:[0], eax
push str.TemplatesClient_
push 0x448c60
push 0x436a34
lea ecx, [esp + 0x64]
call fcn.004172c0
add esp, 0xc
xor ebx, ebx
mov dword [esp + 0x1c0], ebx
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x40]
push ecx
mov ecx, str..conf
call fcn.00410b80
add esp, 8
mov byte [esp + 0x1c0], 1
mov eax, dword [esp + 0x40]
mov edi, 0x10
cmp dword [esp + 0x54], edi
jae 0x40cc61
lea eax, [esp + 0x40]
lea edx, [esp + 0x74]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, ebx
je 0x40cdf2
cmp esi, 0xffffffff
je 0x40cdf2
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0xa8]
call fcn.00410b80
add esp, 8
mov byte [esp + 0x1c0], 2
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x48]
call fcn.004096e0
mov byte [esp + 0x1c0], 1
cmp dword [esp + 0x38], edi
jb 0x40cccd
mov edx, dword [esp + 0x24]
push edx
call fcn.0042019e
add esp, 4
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], 0xf
mov dword [esp + 0x34], ebx
mov byte [esp + 0x24], bl
cmp dword [esp + 0x54], edi
jae 0x40cceb
lea eax, [esp + 0x40]
push ebx
push 0x8000000
push 3
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, ebx
je 0x40cdd7
cmp ebp, 0xffffffff
je 0x40cdd7
lea edi, [esp + 0x3c]
call fcn.0040ff50
mov eax, dword [esp + 0x94]
mov ecx, dword [esp + 0x50]
cmp eax, ecx
ja 0x40cd39
push 0xffffffffffffffff
push eax
mov ecx, edi
call fcn.0040a050
jmp 0x40cd4c
mov ebx, eax
sub ebx, ecx
lea esi, [esp + 0x3c]
call fcn.00410620
mov esi, dword [esp + 0x18]
xor ebx, ebx
mov eax, dword [esp + 0x40]
mov edi, 0x10
cmp dword [esp + 0x54], edi
jae 0x40cd5f
lea eax, [esp + 0x40]
mov edx, dword [esp + 0x94]
push ebx
lea ecx, [esp + 0x20]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40cdd0
push 2
push 0x436b28
lea eax, [esp + 0x44]
push eax
xor eax, eax
call fcn.00410450
cmp eax, 0xffffffff
jne 0x40cdd0
lea eax, [esp + 0x3c]
call fcn.004173f0
mov esi, dword [esp + 0x50]
push ebx
push ebx
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x54], edi
jae 0x40cdb6
lea eax, [esp + 0x40]
push ebx
lea ecx, [esp + 0x20]
push ecx
push esi
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebp
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, dword [esp + 0x18]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [esp + 0x74]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40cc84
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov byte [esp + 0x1c0], bl
cmp dword [esp + 0x54], edi
jb 0x40ce0c
mov eax, dword [esp + 0x40]
push eax
call fcn.0042019e
add esp, 4
mov esi, 0xf
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
mov dword [esp + 0x1c0], 0xffffffff
cmp dword [esp + 0x70], edi
jb 0x40ce3b
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0042019e
add esp, 4
mov dword [esp + 0x70], esi
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
mov ecx, dword [esp + 0x1b8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1a0]
xor ecx, esp
call fcn.0041f826
add esp, 0x1b0
ret