Function at 0x542650
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d5e23
mov eax, dword fs:[0]
push eax
sub esp, 0x194
mov eax, dword [0x6229a0]
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, dword [ebp + 8]
mov edi, closesocket
mov eax, edi
mov ecx, dword [ebx + 0x10]
sub eax, ecx
cmp eax, 5
jb 0x542a18
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x5426a0
mov eax, dword [ebx]
push 5
push str..dmo
push ecx
push eax
push ebx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x28]
call fcn.004deda0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x180]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x194], eax
cmp ecx, 0x10
jb 0x542711
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x542701
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542a1d
push ecx
push edx
call fcn.0059b718
mov eax, dword [ebp - 0x194]
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
cmp eax, 0xffffffff
jne 0x54272f
xor eax, eax
jmp 0x5429fc
push 0x14
mov dword [ebp - 0x190], 0
mov dword [ebp - 0x18c], 0
call fcn.0059b742
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x190], eax
mov esi, dword [ebp - 0x194]
mov dword [ebp - 4], 0
nop
mov ecx, dword [ebx + 0x10]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0x198], 0
cmp eax, 6
jb 0x542a18
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x542794
mov eax, dword [ebx]
push 6
push str._d.dmo
push ecx
push eax
push ebx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x40]
call fcn.004deda0
cmp dword [ebp - 0x2c], 0x10
lea ecx, [ebp - 0x198]
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push ecx
push eax
lea eax, [ebp - 0x154]
push eax
call fcn.00404fa0
mov ecx, dword [ebp - 0x2c]
add esp, 0xc
cmp eax, 1
sete al
mov byte [ebp - 0x181], al
cmp ecx, 0x10
jb 0x542814
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x542804
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x542a1d
push ecx
push edx
call fcn.0059b718
mov al, byte [ebp - 0x181]
add esp, 8
test al, al
je 0x5428e0
mov eax, dword [ebp - 0x190]
xor esi, esi
mov edx, dword [ebp - 0x198]
mov ecx, eax
mov dword [ebp - 0x188], eax
mov edi, dword [eax + 4]
cmp byte [edi + 0xd], 0
jne 0x54285d
mov eax, edi
nop dword [eax]
mov edi, eax
cmp dword [eax + 0x10], edx
jge 0x54284e
mov eax, dword [eax + 8]
xor esi, esi
jmp 0x542857
mov ecx, eax
mov esi, 1
mov eax, dword [eax]
cmp byte [eax + 0xd], 0
je 0x542840
cmp byte [ecx + 0xd], 0
jne 0x542868
cmp edx, dword [ecx + 0x10]
jge 0x5428d5
cmp dword [ebp - 0x18c], 0xccccccc
je 0x542a27
lea eax, [ebp - 0x190]
mov dword [ebp - 0x1a0], eax
push 0x14
mov byte [ebp - 4], 1
mov dword [ebp - 0x19c], 0
call fcn.0059b742
mov ecx, dword [ebp - 0x198]
add esp, 4
mov byte [ebp - 4], 0
mov dword [ebp - 0x19c], 0
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x188]
mov dword [eax], ecx
push eax
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
lea ecx, [ebp - 0x190]
push esi
push edi
mov word [eax + 0xc], 0
call fcn.004fb8a0
mov esi, dword [ebp - 0x194]
mov edi, closesocket
lea eax, [ebp - 0x180]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x542770
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x190]
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp - 0x18c]
dec eax
mov esi, dword [ecx]
cmp edx, eax
jle 0x542997
cmp byte [ebp + 0x10], 0
je 0x542997
mov ecx, dword [ebx + 0x10]
sub edi, ecx
cmp edi, 6
jb 0x542a22
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x542935
mov eax, dword [ebx]
push 6
push str._d.dmo
push ecx
push eax
push ebx
push dword [ebp - 0x188]
lea ecx, [ebp - 0x40]
call fcn.004deda0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
push dword [esi + 0x10]
cmovae eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
push eax
call fcn.004f8210
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x542974
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x28]
call fcn.00402f60
lea ecx, [ebp - 0x40]
call fcn.00402f60
mov edx, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x190]
test edx, edx
jne 0x54299f
xor esi, esi
jmp 0x5429ef
cmp byte [ecx + 0xd], 0
je 0x5429aa
mov eax, dword [ecx + 8]
jmp 0x5429ec
mov eax, dword [ecx]
cmp byte [eax + 0xd], 0
je 0x5429d8
mov eax, dword [ecx + 4]
cmp byte [eax + 0xd], 0
jne 0x5429cf
nop dword [eax + eax]
cmp ecx, dword [eax]
jne 0x5429cf
mov ecx, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x5429c0
cmp byte [ecx + 0xd], 0
cmovne eax, ecx
jmp 0x5429ec
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
jne 0x5429ec
mov eax, ecx
mov ecx, dword [eax + 8]
cmp byte [ecx + 0xd], 0
je 0x5429e1
mov esi, dword [eax + 0x10]
lea ecx, [ebp - 0x190]
call fcn.004ffce0
mov eax, esi
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.0059b734
mov esp, ebp
pop ebp
ret
call fcn.00404b20
call fcn.005a17d1
call fcn.00404b20
call fcn.00407b10
int3