Function at 0x4176c0
Capabilities:
Check os version
Create directory
Delete file
Enumerate files on windows
Read file on windows
Resolve function by parsing pe exports
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x45f33b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x52d8
call fcn.0044c0e0
push ebx
push ebp
push esi
mov ebx, ecx
mov ecx, dword [ebx + 8]
push edi
push 0x15
mov dword [esp + 0x30], ebx
call fcn.00426da0
or eax, edx
jne 0x41771d
mov eax, dword [ebx + 0xc]
cmp eax, 0xffffffff
je 0x417e5a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0xc], 0xffffffff
jmp 0x417e5a
push 0x104
lea eax, [esp + 0x90c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x908]
push 0x5c
push ecx
call fcn.0044c8aa
add esp, 8
test eax, eax
je 0x41774c
mov byte [eax + 1], 0
lea edi, [esp + 0x908]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x417754
mov edx, dword [str.Logs_]
mov ax, word [0x464f10]
mov ecx, dword [ebx + 8]
mov dword [edi], edx
push 0x17
mov word [edi + 4], ax
call fcn.00426da0
mov ebp, eax
mov esi, edx
mov ecx, ebp
or ecx, esi
mov dword [esp + 0x24], esi
jne 0x4177d4
mov edx, dword [str.FileZilla_Server.log]
mov eax, dword [0x464ef8]
mov ecx, dword [0x464efc]
mov dword [esp + 0x90], edx
mov edx, dword [0x464f00]
mov dword [esp + 0x94], eax
mov eax, dword [0x464f04]
mov dword [esp + 0x98], ecx
mov cl, byte [0x464f08]
mov dword [esp + 0x9c], edx
mov dword [esp + 0xa0], eax
mov byte [esp + 0xa4], cl
jmp 0x417806
lea edx, [esp + 0x40]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx eax, word [esp + 0x46]
movzx ecx, word [esp + 0x42]
movzx edx, word [esp + 0x40]
push eax
push ecx
push edx
lea eax, [esp + 0x9c]
push str.fzs__d__02d__02d.log
push eax
call fcn.0044c02b
add esp, 0x14
cmp dword [ebx + 0xc], 0xffffffff
je 0x417830
mov eax, dword [ebx + 4]
test eax, eax
je 0x41793a
lea ecx, [esp + 0x90]
push ecx
push eax
call fcn.0044c9a6
add esp, 8
test eax, eax
je 0x41793a
xor eax, eax
jmp 0x417840
mov cl, byte [esp + eax + 0x908]
mov byte [esp + eax + 0x418], cl
inc eax
test cl, cl
jne 0x417840
push 0
lea edx, [esp + 0x41c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov eax, dword [ebx + 4]
test eax, eax
je 0x417873
push eax
call fcn.0044c004
add esp, 4
lea eax, [esp + 0x90]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417880
sub eax, edx
inc eax
push eax
call fcn.00449a29
lea ecx, [esp + 0x94]
mov edx, eax
mov dword [ebx + 4], eax
mov eax, ecx
add esp, 4
sub edx, eax
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x4178a3
lea eax, [esp + 0x90]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4178b6
lea edi, [esp + 0x418]
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4178c7
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0xc]
and ecx, 3
cmp eax, 0xffffffff
rep movsb byte es:[edi], byte [esi]
je 0x4178ec
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
lea ecx, [esp + 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [ebx + 0xc], eax
jne 0x417929
xor eax, eax
mov ecx, dword [esp + 0x52ec]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, dword [esp + 0x24]
mov ecx, dword [ebx + 8]
push 0x16
call fcn.00426da0
or ebp, esi
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
je 0x417cec
lea edx, [esp + 0x80]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x84]
push ecx
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
mov edx, dword [esp + 0x24]
push 1
xor ebx, ebx
push ebx
push ebx
push edx
call fcn.0044bfd0
mov ecx, dword [esp + 0x20]
xor esi, esi
add eax, ecx
adc edx, esi
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], edx
xor eax, eax
lea esp, [esp]
mov cl, byte [esp + eax + 0x908]
mov byte [esp + eax + 0xdf8], cl
inc eax
test cl, cl
jne 0x4179a0
lea edi, [esp + 0xdf8]
dec edi
jmp 0x4179c0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4179c0
mov edx, dword [0x464ed0]
mov eax, dword [0x464ed4]
mov cx, word [0x464ed8]
mov dword [edi], edx
mov dword [edi + 4], eax
lea edx, [esp + 0x2d8]
push edx
lea eax, [esp + 0xdfc]
push eax
mov word [edi + 8], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + 8]
mov esi, eax
push 0x18
mov dword [esp + 0x2c], esi
call fcn.00426da0
mov ecx, eax
or ecx, edx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
je 0x417a39
push 0xc9
add eax, 1
push 0x2a69c000
adc edx, ebx
push edx
push eax
call fcn.0044bfd0
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], ebx
mov byte [esp + 0x68], 0
cmp esi, 0xffffffff
mov dword [esp + 0x52f4], ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
je 0x417c66
lea ebx, [ebx]
mov ecx, 0x50
lea esi, [esp + 0x2d8]
lea edi, [esp + 0x198]
lea edx, [esp + 0x2d8]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x417aab
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0x1c4]
push 0x463b4c
push eax
call fcn.0044c9a6
add esp, 8
test eax, eax
je 0x417c48
lea ecx, [esp + 0x1c4]
push 0x46397c
push ecx
call fcn.0044c9a6
add esp, 8
test eax, eax
je 0x417c48
mov edx, dword [esp + 0x1b4]
push 1
push 0
push 0
push edx
call fcn.0044bfd0
mov esi, eax
mov eax, dword [esp + 0x1b8]
mov edi, edx
mov edx, dword [esp + 0x2c]
xor ecx, ecx
add esi, eax
mov eax, dword [edx + 4]
push eax
lea eax, [esp + 0x1c8]
adc edi, ecx
push eax
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edi
call fcn.0044c9a6
add esp, 8
test eax, eax
jne 0x417b46
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
add ecx, esi
adc eax, edi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
jmp 0x417c48
mov ecx, dword [esp + 0x1b0]
push 1
push 0
push 0
push ecx
call fcn.0044bfd0
mov ebx, dword [esp + 0x5c]
mov ebp, eax
mov eax, dword [esp + 0x1ac]
xor ecx, ecx
add ebp, eax
mov eax, dword [esp + 0x58]
adc edx, ecx
sub eax, ebp
mov dword [esp + 0x40], eax
sbb ebx, edx
jmp 0x417b80
mov al, byte [esp + ecx + 0x908]
mov byte [esp + ecx + 0x418], al
inc ecx
test al, al
jne 0x417b80
lea ecx, [esp + 0x1c4]
mov esi, ecx
lea esp, [esp]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x417ba0
sub ecx, esi
lea edi, [esp + 0x418]
mov eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417bb3
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x18]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
or eax, ecx
je 0x417bf7
mov eax, ecx
cmp ebx, eax
jl 0x417bf7
jg 0x417be7
mov ecx, dword [esp + 0x18]
cmp dword [esp + 0x40], ecx
jbe 0x417bf7
lea edx, [esp + 0x418]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x417c48
mov eax, dword [esp + 0x50]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x54]
add edi, eax
mov eax, dword [esp + 0x34]
adc esi, ecx
cmp edx, eax
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
jl 0x417c2b
jg 0x417c23
cmp ebp, dword [esp + 0x30]
jb 0x417c2b
mov ecx, dword [esp + 0x30]
or ecx, eax
jne 0x417c48
mov dword [esp + 0x34], edx
lea edx, [esp + 0x418]
push edx
lea eax, [esp + 0x68]
push eax
mov dword [esp + 0x38], ebp
call fcn.00405580
add esp, 8
cmp dword [esp + 0x28], 0xffffffff
jne 0x417a70
mov eax, dword [esp + 0x7c]
mov esi, 0x10
cmp eax, esi
jb 0x417c66
mov eax, dword [esp + 0x68]
jmp 0x417c6f
lea eax, [esp + 0x68]
mov esi, 0x10
push 0x462398
push eax
call fcn.0044c9a6
add esp, 8
test eax, eax
je 0x417cce
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov edx, eax
or edx, ecx
je 0x417cce
push 0
push 0x400
push ecx
push eax
call fcn.0044bfd0
cmp dword [esp + 0x14], edx
jl 0x417cce
jg 0x417cab
cmp dword [esp + 0x10], eax
jbe 0x417cce
cmp dword [esp + 0x7c], esi
mov eax, dword [esp + 0x68]
jae 0x417cb9
lea eax, [esp + 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp + 0x64]
call fcn.00401fd0
jmp 0x417e5a
cmp dword [esp + 0x7c], esi
mov dword [esp + 0x52f4], 0xffffffff
jb 0x417cec
mov eax, dword [esp + 0x68]
push eax
call fcn.0044b92d
add esp, 4
mov ebx, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
mov ecx, ebx
or ecx, edi
je 0x417e5a
mov esi, dword [esp + 0x2c]
mov edx, dword [esi + 0xc]
push edx
call fcn.00421470
add esp, 4
push 0
push 0x400
push edx
push eax
call fcn.0044c800
cmp edx, edi
jl 0x417e5a
jg 0x417d2e
cmp eax, ebx
jbe 0x417e5a
push 0
push 0x400
push edx
push eax
call fcn.0044bfd0
push 0
push 0x400
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
fild qword [esp + 0x28]
push edi
push ebx
fstp qword [esp + 0x50]
call fcn.0044bfd0
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
fild qword [esp + 0x20]
fmul qword [0x464ec8]
fsubr qword [esp + 0x40]
call fcn.0044c120
mov edi, eax
xor ebx, ebx
mov ebp, 1
mov edi, edi
mov eax, dword [esi + 0xc]
push 0
push 0
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esi + 0xc]
push 0
lea ecx, [esp + 0x1c]
push ecx
push 0x4000
lea edx, [esp + 0x12f4]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x417e41
mov ecx, dword [esi + 0xc]
mov eax, dword [esp + 0x18]
push 0
push 0
push ebx
push ecx
add edi, eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebp, ebp
mov eax, dword [esp + 0x18]
je 0x417e10
xor ecx, ecx
test eax, eax
jbe 0x417def
jmp 0x417de0
cmp byte [esp + ecx + 0x12e8], 0xa
je 0x417def
inc ecx
cmp ecx, eax
jb 0x417de0
lea edx, [eax - 1]
cmp ecx, edx
jae 0x417e36
xor ebp, ebp
push ebp
sub eax, ecx
lea edx, [esp + 0x14]
push edx
dec eax
push eax
lea eax, [esp + ecx + 0x12f5]
mov ecx, dword [esi + 0xc]
push eax
push ecx
jmp 0x417e24
push 0
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0xc]
push eax
lea ecx, [esp + 0x12f4]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x417e41
add ebx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
cmp eax, 0x4000
je 0x417d80
mov eax, dword [esi + 0xc]
push 0
push 0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov ecx, dword [esp + 0x52ec]
pop edi
mov eax, 1
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret