Function at 0x49eb30
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4da23f
mov eax, dword fs:[0]
push eax
sub esp, 0x28c
mov eax, dword [0x517b80]
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
mov esi, dword [ebx]
mov edi, dword [ebp + 8]
push dword [esi + 4]
push ebx
call fcn.0041a600
push 0x5c
mov dword [esi + 4], esi
mov dword [esi], esi
mov dword [esi + 8], esi
push edi
mov dword [ebx + 4], 0
call fcn.004ab2c0
add esp, 8
test eax, eax
je 0x49eb9a
add eax, 2
mov dword [ebp - 0x14], eax
jmp 0x49ebb6
push 0x2f
push edi
call fcn.004ab2c0
add esp, 8
test eax, eax
je 0x49ebb1
add eax, 2
mov dword [ebp - 0x14], eax
jmp 0x49ebb6
mov eax, edi
mov dword [ebp - 0x14], edi
push 0x2e
push eax
call fcn.004ab2c0
add esp, 8
mov dword [ebp - 0x278], eax
mov esi, eax
test eax, eax
je 0x49ec0a
cmp eax, edi
jbe 0x49ebf1
mov ebx, edi
movzx eax, word [esi - 2]
push eax
call fcn.004ba28a
add esp, 4
test eax, eax
je 0x49ebeb
add esi, 0xfffffffe
cmp esi, ebx
ja 0x49ebd3
mov ebx, dword [ebp - 0x280]
cmp word [esi - 2], 0x2d
lea eax, [esi - 2]
mov ecx, dword [ebp - 0x278]
cmove ecx, eax
mov dword [ebp - 0x274], ecx
jmp 0x49ec25
push 0
push dword [ebp - 0x14]
call fcn.004ab2c0
add esp, 8
mov dword [ebp - 0x278], eax
mov ecx, eax
mov dword [ebp - 0x274], eax
sub ecx, edi
mov dword [ebp - 0x18], 0
sar ecx, 1
mov eax, ecx
neg eax
sbb eax, eax
and eax, 2
push eax
push 0x4e454c
lea eax, [ecx + ecx]
push eax
push edi
call fcn.004a2980
mov dword [ebp - 0x18], eax
push 0x4eb8a0
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
call fcn.004a27e0
push eax
push 0x4eb8a0
call fcn.004a29e0
add esp, 0x1c
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x284]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x18]
call fcn.004a24b0
mov esi, eax
mov edi, dword [ebp - 0x278]
push edi
mov byte [ebp - 4], 2
call fcn.004a27e0
push eax
push edi
call fcn.004a29e0
add esp, 0xc
mov dword [ebp - 0x270], eax
lea eax, [ebp - 0x270]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.004a24b0
mov ecx, dword [ebp - 0x270]
mov byte [ebp - 4], 6
test ecx, ecx
je 0x49ecdd
call fcn.004a2a20
mov ecx, dword [ebp - 0x288]
mov byte [ebp - 4], 8
test ecx, ecx
je 0x49ecf0
call fcn.004a2a20
mov ecx, dword [ebp - 0x284]
mov byte [ebp - 4], 0xa
test ecx, ecx
je 0x49ed03
call fcn.004a2a20
lea eax, [ebp - 0x26c]
mov byte [ebp - 4], 9
push eax
lea ecx, [ebp - 0x1c]
call fcn.004a2380
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x290], eax
cmp eax, 0xffffffff
je 0x49ef02
mov eax, dword [ebp - 0x274]
lea edi, [ebp - 0x240]
sub eax, dword [ebp - 0x14]
sar eax, 1
lea edi, [edi + eax*2]
mov dword [ebp - 0x28c], edi
mov esi, edi
cmp word [esi], 0x2d
jne 0x49ed76
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.004ba28a
add esp, 4
test eax, eax
je 0x49ed76
movzx eax, word [esi + 2]
add esi, 2
push eax
call fcn.004ba28a
add esp, 4
test eax, eax
jne 0x49ed62
push dword [ebp - 0x278]
push esi
call fcn.004aed57
add esp, 8
test eax, eax
jne 0x49eedf
push edi
mov dword [ebp - 0x14], eax
call fcn.004a27e0
push eax
push edi
call fcn.004a29e0
add esp, 0xc
mov dword [ebp - 0x274], eax
lea eax, [ebp - 0x274]
mov byte [ebp - 4], 0xb
push eax
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.004a24b0
mov ecx, dword [ebp - 0x274]
mov byte [ebp - 4], 0xe
test ecx, ecx
je 0x49edd0
call fcn.004a2a20
mov ecx, dword [ebx]
xor edi, edi
mov byte [ebp - 4], 0xd
mov dword [ebp - 0x27c], ecx
mov eax, dword [ecx + 4]
mov dword [ebp - 0x280], eax
cmp byte [eax + 0xd], 0
jne 0x49ee2a
mov esi, eax
nop
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x280], esi
push ecx
lea eax, [esi + 0x10]
mov ecx, ebx
push eax
call fcn.0049cfc0
test al, al
je 0x49ee14
mov esi, dword [esi + 8]
mov ecx, dword [ebp - 0x27c]
jmp 0x49ee1e
mov ecx, esi
mov esi, dword [esi]
mov dword [ebp - 0x27c], ecx
movzx edi, al
xor edi, 1
cmp byte [esi + 0xd], 0
je 0x49edf0
cmp byte [ecx + 0xd], 0
jne 0x49ee47
lea eax, [ecx + 0x10]
mov ecx, ebx
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0049cfc0
test al, al
je 0x49eec5
cmp dword [ebx + 4], 0xccccccc
je 0x49ef43
mov eax, dword [ebx]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x298], ebx
push 0x14
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x294], 0
call fcn.004a71b8
mov esi, eax
add esp, 4
mov dword [ebp - 0x294], esi
mov ecx, dword [ebp - 0x14]
mov dword [esi + 0x10], ecx
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x10
test ecx, ecx
je 0x49ee98
call fcn.004a26e0
mov eax, dword [ebp - 0x27c]
mov ecx, ebx
push esi
mov dword [esi], eax
push edi
push dword [ebp - 0x280]
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov word [esi + 0xc], 0
mov dword [ebp - 0x294], 0
call fcn.0041b620
mov ecx, dword [ebp - 0x14]
mov byte [ebp - 4], 0x12
test ecx, ecx
je 0x49eed5
call fcn.004a2a20
mov edi, dword [ebp - 0x28c]
mov byte [ebp - 4], 9
mov esi, dword [ebp - 0x290]
lea eax, [ebp - 0x26c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x49ed46
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0x13
test ecx, ecx
je 0x49ef12
call fcn.004a2a20
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 4], 0x14
test ecx, ecx
je 0x49ef25
call fcn.004a2a20
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.004a71aa
mov esp, ebp
pop ebp
ret 4
call fcn.0041b810
int3