Function at 0x46ea80
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x258
mov eax, dword [0x52259c]
push ebx
push ebp
push esi
mov esi, edx
push edi
test eax, eax
mov dword [esp + 0x10], esi
mov ebp, ecx
je 0x46eaaa
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x258
ret 4
mov ecx, 0x5fc2
call fcn.0046d1f0
test byte [esp + 0x26c], 0x80
je 0x46eafb
mov ebx, 1
mov ecx, ebx
call fcn.0047bf90
test eax, eax
je 0x46eaf5
mov edx, str.__:_
lea ecx, [esp + 0x14]
call fcn.004634d0
mov al, bl
lea ecx, [esp + 0x14]
add al, 0x40
push ecx
xor edx, edx
mov ecx, 0x5fc2
mov byte [esp + 0x19], al
call fcn.0046cf40
inc ebx
cmp ebx, 0x1a
jle 0x46eac3
mov al, byte [esp + 0x26c]
mov edi, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
test al, 1
mov bl, 0x5c
je 0x46ebf5
mov edx, ebp
lea ecx, [esp + 0x24]
call fcn.004634d0
mov al, byte [esp + 0x24]
test al, al
je 0x46eb42
lea ecx, [esp + 0x24]
call fcn.004634b0
cmp byte [esp + eax + 0x23], bl
je 0x46eb42
mov edx, 0x4964e8
lea ecx, [esp + 0x24]
call fcn.00463540
mov edx, 0x498ca8
lea ecx, [esp + 0x24]
call fcn.00463540
cmp byte [ebp + 1], 0x3a
jne 0x46eb68
mov al, byte [ebp + 2]
test al, al
je 0x46eb61
cmp al, bl
jne 0x46eb68
mov al, byte [ebp + 3]
test al, al
je 0x46eb79
push str._.._
xor edx, edx
mov ecx, 0x5fc2
call fcn.0046cf40
lea edx, [esp + 0x128]
lea eax, [esp + 0x24]
push edx
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x46ebea
test byte [esp + 0x128], 0x10
je 0x46ebd7
cmp byte [esp + 0x154], 0x2e
je 0x46ebd7
lea edx, [esp + 0x154]
lea ecx, [esp + 0x15]
mov byte [esp + 0x14], 0x3c
call fcn.004634d0
mov edx, 0x498c9c
lea ecx, [esp + 0x14]
call fcn.00463540
lea ecx, [esp + 0x14]
xor edx, edx
push ecx
mov ecx, 0x5fc2
call fcn.0046cf40
lea edx, [esp + 0x128]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46eb8f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x10]
mov edx, ebp
lea ecx, [esp + 0x24]
call fcn.004634d0
mov al, byte [esp + 0x24]
test al, al
je 0x46ec25
lea ecx, [esp + 0x24]
call fcn.004634b0
cmp byte [esp + eax + 0x23], bl
je 0x46ec25
mov edx, 0x4964e8
lea ecx, [esp + 0x24]
call fcn.00463540
test esi, esi
mov edx, esi
jne 0x46ec30
mov edx, 0x498ca8
lea ecx, [esp + 0x24]
call fcn.00463540
lea eax, [esp + 0x128]
lea ecx, [esp + 0x24]
push eax
push ecx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x46ec80
test byte [esp + 0x128], 0x10
jne 0x46ec6d
lea edx, [esp + 0x154]
mov ecx, 0x5fc2
push edx
xor edx, edx
call fcn.0046cf40
lea eax, [esp + 0x128]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x46ec4f
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, 0x5fc2
call fcn.0046d300
test eax, eax
mov dword [esp + 0x10], eax
mov dword [0x52259c], eax
jne 0x46ecab
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 4
test byte [esp + 0x26c], 0x30
je 0x46ed5a
mov ecx, dword [eax]
mov edi, eax
test ecx, ecx
je 0x46ed5a
mov ecx, dword [edi + 4]
lea ebp, [edi + 4]
test ecx, ecx
mov esi, ebp
je 0x46ed4f
mov ecx, dword [edi]
xor eax, eax
mov dl, byte [ecx]
cmp dl, 0x3c
jne 0x46ecf1
mov ecx, dword [esi]
mov cl, byte [ecx]
cmp cl, dl
je 0x46ecf1
sub cl, 0x5b
neg cl
sbb ecx, ecx
and ecx, 0xfffffffe
inc ecx
mov eax, ecx
cmp dl, 0x5b
jne 0x46ecfd
mov edx, dword [esi]
cmp byte [edx], 0x5b
jne 0x46ed41
test eax, eax
jne 0x46ed37
test byte [esp + 0x26c], 0x20
je 0x46ed2c
mov ecx, dword [esi]
mov dl, 0x2e
call fcn.00463740
mov ecx, dword [edi]
mov dl, 0x2e
mov ebx, eax
call fcn.00463740
mov ecx, eax
mov edx, ebx
call fcn.004635e0
test eax, eax
jne 0x46ed37
mov edx, dword [esi]
mov ecx, dword [edi]
call fcn.004635e0
test eax, eax
jle 0x46ed41
mov ecx, dword [esi]
mov eax, dword [edi]
mov dword [edi], ecx
mov dword [esi], eax
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x46ecd1
mov eax, dword [esp + 0x10]
mov edi, ebp
cmp dword [edi], 0
jne 0x46ecc5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x258
ret 4