Function at 0x51a230
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x666278
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x71ccd4]
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 eax, ecx
mov dword [ebp - 0xa4], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0xa8], edi
call fcn.0051a9e0
mov ecx, esi
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51a295
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.0044d4e0
mov esi, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
test esi, esi
je 0x51a40e
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x28]
cmp ebx, 0x10
cmovae eax, ecx
mov al, byte [esi + eax - 1]
cmp al, 0x5c
je 0x51a40e
cmp esi, ebx
jae 0x51a2f3
lea eax, [esi + 1]
cmp ebx, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x28]
cmovae eax, ecx
mov word [eax + esi], 0x5c
jmp 0x51a408
mov ecx, closesocket
mov eax, ecx
sub eax, esi
cmp eax, 1
jb 0x51a9ca
lea edi, [esi + 1]
or edi, 0xf
cmp edi, ecx
jbe 0x51a321
mov eax, connect
mov edi, ecx
push eax
call fcn.00449c20
add esp, 4
jmp 0x51a36d
mov eax, ebx
shr eax, 1
sub ecx, eax
cmp ebx, ecx
jbe 0x51a340
mov eax, connect
mov edi, closesocket
push eax
call fcn.00449c20
add esp, 4
jmp 0x51a36d
add eax, ebx
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
cmp eax, 0x1000
jb 0x51a35c
push eax
call fcn.00449c20
add esp, 4
jmp 0x51a36d
test eax, eax
je 0x51a36b
push eax
call fcn.005c7d27
add esp, 4
jmp 0x51a36d
xor eax, eax
lea ecx, [esi + 1]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x18], ecx
lea edi, [esi + eax]
lea ecx, [esi + 1]
mov dword [ebp - 0xac], eax
add ecx, eax
mov dword [ebp - 0xb4], edi
mov dword [ebp - 0xb0], ecx
push esi
cmp ebx, 0x10
jb 0x51a3e0
mov edi, dword [ebp - 0x28]
push edi
push eax
call fcn.006029d0
mov eax, dword [ebp - 0xb4]
inc ebx
add esp, 0xc
mov byte [eax], 0x5c
mov eax, dword [ebp - 0xb0]
mov byte [eax], 0
cmp ebx, 0x1000
jb 0x51a3d4
mov ecx, dword [edi - 4]
add ebx, 0x23
sub edi, ecx
lea eax, [edi - 4]
cmp eax, 0x1f
ja 0x51a9cf
mov edi, ecx
push ebx
push edi
call fcn.005c7d65
add esp, 8
jmp 0x51a3f9
lea ecx, [ebp - 0x28]
push ecx
push eax
call fcn.006029d0
mov eax, dword [ebp - 0xb0]
add esp, 0xc
mov byte [edi], 0x5c
mov byte [eax], 0
mov eax, dword [ebp - 0xac]
mov edi, dword [ebp - 0xa8]
mov dword [ebp - 0x28], eax
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp ebx, 0x10
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x70]
push esi
push eax
call fcn.0044d3e0
push 3
push 0x68b9a4
lea ecx, [ebp - 0x70]
call fcn.0044d3e0
mov ecx, dword [ebp - 0xa4]
lea eax, [ebp - 0x70]
add ecx, 4
push ecx
or dword [ecx], 0x10
cmp dword [ebp - 0x5c], 0x10
cmovae eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, dword [ebp - 0xa4]
mov dword [esi + 0x144], eax
cmp eax, 0xffffffff
je 0x51a930
lea ebx, [esi + 0x30]
mov dword [ebp - 0xac], ebx
nop dword [eax + eax]
cmp byte [ebx], 0x2e
je 0x51a918
mov ecx, esi
call fcn.0051aa30
test al, al
je 0x51a4d4
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
push ebx
cmovae ecx, dword [ebp - 0x28]
mov eax, dword [edx]
push ecx
push edi
mov ecx, edx
mov eax, dword [eax + 4]
call eax
test al, al
je 0x51a99c
mov esi, dword [ebp - 0xa4]
jmp 0x51a918
push 0x2e
push ebx
call fcn.006048e0
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x51a915
cmp dword [ebp + 0x10], 0
je 0x51a87b
mov ecx, edi
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0xf
mov byte [ebp - 0x58], 0
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51a511
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.0044d4e0
cmp dword [ebp - 0x44], 0x10
lea esi, [ebp - 0x58]
mov eax, dword [ebp - 0x48]
cmovae esi, dword [ebp - 0x58]
mov byte [ebp - 4], 2
test eax, eax
je 0x51a550
push eax
push 0x3b
push esi
call fcn.006030d0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x51a550
sub edi, esi
jmp 0x51a553
or edi, 0xffffffff
test edi, edi
jle 0x51a8b0
mov esi, dword [ebp - 0xa8]
mov ecx, esi
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51a580
sub ecx, edx
push ecx
push esi
lea ecx, [ebp - 0x40]
call fcn.0044d4e0
cmp dword [ebp - 0x30], edi
lea eax, [ebp - 0x40]
mov ecx, edi
mov dword [ebp - 0x88], 0
cmovb ecx, dword [ebp - 0x30]
cmp dword [ebp - 0x2c], 0x10
push ecx
cmovae eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x88]
push eax
mov byte [ebp - 4], 3
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0xf
mov byte [ebp - 0x88], 0
call fcn.0044d4e0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x51a60f
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a605
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
add esp, 8
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x51a612
sub esi, ecx
mov dword [ebp - 0x40], 0
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], al
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51a640
sub ecx, edx
push ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x40]
call fcn.0044d4e0
mov eax, dword [ebp - 0x30]
inc edi
mov byte [ebp - 4], 6
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0xf
cmp eax, edi
jb 0x51a9d4
sub eax, edi
lea ecx, [ebp - 0xa0]
cmp eax, esi
cmovb esi, eax
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push esi
add eax, edi
push eax
call fcn.0044d4e0
mov edx, dword [ebp - 0x2c]
mov byte [ebp - 4], 5
cmp edx, 0x10
jb 0x51a6df
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a6d5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
add esp, 8
lea esi, [ebx + 1]
push esi
lea ecx, [ebp - 0x88]
call fcn.004566c0
test eax, eax
je 0x51a7ce
push esi
lea ecx, [ebp - 0xa0]
call fcn.004566c0
test eax, eax
je 0x51a7ce
mov edx, dword [ebp - 0x8c]
cmp edx, 0x10
jb 0x51a744
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a73a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
add esp, 8
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x51a77f
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a775
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
add esp, 8
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x51a7b7
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a7ad
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
add esp, 8
mov edi, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xa4]
mov ebx, dword [ebp - 0xac]
jmp 0x51a918
mov edx, dword [ebp - 0x8c]
cmp edx, 0x10
jb 0x51a808
mov ecx, dword [ebp - 0xa0]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a7fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
add esp, 8
mov edx, dword [ebp - 0x74]
mov byte [ebp - 4], 2
cmp edx, 0x10
jb 0x51a843
mov ecx, dword [ebp - 0x88]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a839
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
add esp, 8
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x51a87b
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a871
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
add esp, 8
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
cmovae ecx, dword [ebp - 0x28]
mov eax, dword [edx]
lea ebx, [edx + 0x30]
push ebx
push ecx
mov ecx, edx
mov eax, dword [eax + 8]
call eax
test al, al
je 0x51a99c
mov edi, dword [ebp - 0xa8]
mov esi, dword [ebp - 0xa4]
jmp 0x51a918
mov edi, dword [ebp - 0xa8]
lea eax, [ebx + 1]
push edi
push eax
call fcn.00614e21
add esp, 8
test eax, eax
je 0x51a843
mov edx, dword [ebp - 0x44]
mov byte [ebp - 4], 1
cmp edx, 0x10
jb 0x51a7bd
mov ecx, dword [ebp - 0x58]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a8fd
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
mov esi, dword [ebp - 0xa4]
add esp, 8
mov ebx, dword [ebp - 0xac]
jmp 0x51a918
lea ebx, [esi + 0x30]
lea eax, [esi + 4]
push eax
push dword [esi + 0x144]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x51a490
mov bl, 1
mov edx, dword [ebp - 0x5c]
cmp edx, 0x10
jb 0x51a962
mov ecx, dword [ebp - 0x70]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a958
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
push edx
push ecx
call fcn.005c7d65
add esp, 8
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
cmp edx, 0x10
jb 0x51a9aa
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x51a9a0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51a9cf
jmp 0x51a9a0
xor bl, bl
jmp 0x51a932
push edx
push ecx
call fcn.005c7d65
add esp, 8
mov al, bl
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.005c81cf
mov esp, ebp
pop ebp
ret 0xc
call fcn.0044d230
call fcn.0060d0a2
call fcn.0049d7d0
int3