Function at 0x5047b0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c01fa
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x78efc4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x344], edi
mov dword [ebp - 0x334], edi
mov dword [ebp - 0x334], edi
xor esi, esi
mov dword [ebp - 0x340], 0
mov dword [ebp - 0x33c], esi
mov dword [ebp - 0x338], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x68], esi
xor eax, eax
mov dword [ebp - 0x58], esi
push 1
push 0x751b40
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov byte [ebp - 4], al
call fcn.0044d800
lea eax, [ebp - 0x68]
mov byte [ebp - 4], 2
push eax
mov edx, str..pipe_
lea ecx, [ebp - 0xb0]
call fcn.0044e2a0
add esp, 4
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x54]
cmp edx, 8
jb 0x50488a
mov ecx, dword [ebp - 0x68]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504880
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504ed2
push edx
push ecx
call fcn.006779b1
add esp, 8
cmp dword [ebp - 0x9c], 8
lea ecx, [ebp - 0x330]
lea eax, [ebp - 0xb0]
cmovae eax, dword [ebp - 0xb0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [sym.imp.KERNEL32.dll_FindClose]
xor edx, edx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0xe0], eax
test ecx, ecx
je 0x504913
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x50]
mov edx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x50], vtable.std::_Func_impl_no_alloc_int____stdcall___void____bool__void__.0
lea ecx, [ebp - 0xd8]
mov dword [ebp - 0xb4], 0
push ecx
mov eax, dword [edx]
mov ecx, edx
mov eax, dword [eax + 4]
call eax
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0xb4], eax
test ecx, ecx
je 0x504919
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x50]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x2c], 0
jmp 0x504919
mov dword [ebp - 0xb4], edx
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x504cdc
cmp eax, 0xffffffff
je 0x504cdc
mov dword [ebp - 0x68], 0
mov ecx, str._w_8__w_4__w_4__w_4__w_12
mov dword [ebp - 0x58], 0
xor eax, eax
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 5
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x504960
sub ecx, edx
sar ecx, 1
push ecx
push str._w_8__w_4__w_4__w_4__w_12
lea ecx, [ebp - 0x68]
call fcn.0044d800
mov ecx, str.MonitorPipeServer_x86_
mov byte [ebp - 4], 0xd
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x504990
sub ecx, edx
mov eax, accept
mov edx, dword [ebp - 0x58]
sub eax, edx
sar ecx, 1
cmp eax, ecx
jb 0x504ed7
cmp dword [ebp - 0x54], 8
lea eax, [ebp - 0x68]
push edx
cmovae eax, dword [ebp - 0x68]
push eax
push ecx
push str.MonitorPipeServer_x86_
push ecx
push dword [ebp - 0x334]
lea ecx, [ebp - 0x98]
call fcn.00454d70
push ecx
lea eax, [ebp - 0x98]
mov byte [ebp - 4], 0xe
push eax
lea ecx, [ebp - 0x360]
call fcn.0048b8a0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x504a31
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504a27
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504edc
push edx
push ecx
call fcn.006779b1
add esp, 8
mov edi, str.MonitorPipeServer_x86_
mov dword [ebp - 0x88], 0
xor eax, eax
mov dword [ebp - 0x84], 7
mov word [ebp - 0x98], ax
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x504a56
sub edi, ecx
sar edi, 1
mov dword [ebp - 0x334], edi
nop dword [eax + eax]
mov dword [ebp - 0x28], 0
xor eax, eax
mov dword [ebp - 0x18], 0
lea ecx, [ebp - 0x304]
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea edx, [ecx + 2]
mov byte [ebp - 4], 0x10
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x504aa0
sub ecx, edx
lea eax, [ebp - 0x304]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.0044d800
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x18]
jb 0x504ad7
mov ecx, dword [ebp - 0x28]
lea edx, [ecx + eax*2]
jmp 0x504add
lea edx, [ecx + eax*2]
lea ecx, [ebp - 0x28]
push ecx
push 0x10
lea eax, [ebp - 0x360]
push eax
push ecx
call fcn.0045ba00
add esp, 0x10
test al, al
je 0x504c1f
mov dword [ebp - 0x40], 0
xor eax, eax
mov byte [ebp - 4], 0x12
mov word [ebp - 0x40], ax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
cmp eax, edi
jb 0x504ee1
sub eax, edi
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovb ecx, eax
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov dword [ebp - 0x348], ecx
cmovae eax, dword [ebp - 0x28]
lea eax, [eax + edi*2]
mov dword [ebp - 0x34c], eax
cmp ecx, 7
ja 0x504b69
lea esi, [ecx + ecx]
mov dword [ebp - 0x30], ecx
push esi
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00679930
add esp, 0xc
xor eax, eax
mov word [ebp + esi - 0x40], ax
jmp 0x504bd0
cmp ecx, 0x7ffffffe
ja 0x504ed7
mov esi, ecx
or esi, 7
cmp esi, 0x7ffffffe
jbe 0x504b89
mov esi, accept
jmp 0x504b94
cmp esi, 0xa
mov eax, 0xa
cmovb esi, eax
lea eax, [esi + 1]
push eax
lea ecx, [ebp - 0x40]
call fcn.0044da00
mov edi, eax
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x348]
mov dword [ebp - 0x30], eax
lea esi, [eax + eax]
push esi
push dword [ebp - 0x34c]
push edi
call fcn.00679930
add esp, 0xc
mov dword [ebp - 0x40], edi
xor eax, eax
mov word [esi + edi], ax
mov edi, dword [ebp - 0x334]
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x40]
mov esi, dword [ebp - 0x33c]
push eax
cmp esi, dword [ebp - 0x338]
je 0x504bf8
mov ecx, esi
call fcn.0044d080
add esi, 0x18
mov dword [ebp - 0x33c], esi
jmp 0x504c0a
push esi
lea ecx, [ebp - 0x340]
call fcn.00450770
mov esi, dword [ebp - 0x33c]
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x504c1f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.0044da60
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x504c38
inc eax
lea ecx, [ebp - 0x28]
push eax
push dword [ebp - 0x28]
call fcn.0044da60
lea eax, [ebp - 0x330]
push eax
push dword [ebp - 0xe0]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x504a70
mov edi, dword [ebp - 0x344]
lea ecx, [ebp - 0x360]
mov eax, dword [ebp - 0x340]
mov dword [edi], eax
mov eax, dword [ebp - 0x338]
mov dword [edi + 4], esi
mov dword [edi + 8], eax
call fcn.00459cf0
mov ecx, dword [ebp - 0x350]
test ecx, ecx
je 0x504c95
mov eax, dword [ecx]
mov eax, dword [eax + 8]
call eax
mov ecx, eax
test ecx, ecx
je 0x504c95
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, dword [ebp - 0x54]
cmp eax, 8
jb 0x504caa
inc eax
lea ecx, [ebp - 0x68]
push eax
push dword [ebp - 0x68]
call fcn.0044da60
lea ecx, [ebp - 0xe0]
call fcn.00537920
mov eax, dword [ebp - 0x9c]
cmp eax, 8
jb 0x504eb5
inc eax
lea ecx, [ebp - 0xb0]
push eax
push dword [ebp - 0xb0]
call fcn.0044da60
jmp 0x504eb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
cmp dword [0x7a9718], esi
je 0x504df0
mov dword [0x7a9718], esi
call fcn.004486f0
mov edx, esi
lea ecx, [ebp - 0x98]
mov edi, eax
call fcn.00531420
mov esi, eax
mov dword [ebp - 0x80], 0
mov ecx, str.MonitorPipeServer_x86_
mov dword [ebp - 0x70], 0
xor eax, eax
mov dword [ebp - 0x6c], 7
mov word [ebp - 0x80], ax
mov byte [ebp - 4], 6
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x504d33
sub ecx, edx
sar ecx, 1
push ecx
push str.MonitorPipeServer_x86_
lea ecx, [ebp - 0x80]
call fcn.0044d800
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.0044d190
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 9
push ecx
lea eax, [ebp - 0x50]
push eax
push ecx
lea ecx, [ebp - 0x1c]
call fcn.0044fb00
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 0xa
push eax
push str.Files_lookup:_Cannot_iterate_over_pipes_mask__0_._Error:__1
push 3
mov ecx, edi
call fcn.004dd4f0
lea ecx, [ebp - 0x1c]
call fcn.0044d720
push fcn.0044bb60
push 2
push 0x18
lea eax, [ebp - 0x80]
mov byte [ebp - 4], 6
push eax
call fcn.00677646
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x84]
cmp edx, 8
jb 0x504dea
mov ecx, dword [ebp - 0x98]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504de0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504ee6
push edx
push ecx
call fcn.006779b1
add esp, 8
mov edi, dword [ebp - 0x344]
mov dword [ebp - 0x338], 0
mov dword [ebp - 0x33c], 0
mov dword [ebp - 0x340], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov byte [ebp - 4], 0xb
mov eax, dword [ebp - 0xe0]
test eax, eax
je 0x504e51
cmp eax, 0xffffffff
je 0x504e51
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x504e79
mov dword [ebp - 0x334], eax
lea edx, [ebp - 0x334]
mov eax, dword [ecx]
push edx
call dword [eax + 8]
mov ecx, dword [ebp - 0xb4]
test ecx, ecx
je 0x504e79
mov edx, dword [ecx]
lea eax, [ebp - 0xd8]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0xb4], 0
mov edx, dword [ebp - 0x9c]
cmp edx, 8
jb 0x504eb5
mov ecx, dword [ebp - 0xb0]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x504eab
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x504eeb
push edx
push ecx
call fcn.006779b1
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006773ff
mov esp, ebp
pop ebp
ret
call fcn.00682da2
call fcn.00447ce0
call fcn.00682da2
call fcn.0044e290
call fcn.00682da2
call fcn.00682da2
int3