Function at 0x46bd70
Capabilities:
Enumerate files on windows

Disassembly:
mov eax, 0x10c0
call fcn.004d6340
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x10dc]
lea eax, [esp + 0xcc0]
push edi
xor ebp, ebp
push 0x59f064
push eax
xor ebx, ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x1c], ebp
call fcn.004d5ee1
mov esi, dword [esp + 0x10ec]
lea ecx, [esp + 0xac4]
push 8
push ecx
push esi
call fcn.004c93e0
add esp, 0x18
cmp word [esp + 0xab8], bp
je 0x46bddd
push esi
push edi
lea edx, [esp + 0xcc8]
push str._s_s
push edx
jmp 0x46bdfb
push 0x2a
push esi
call fcn.004d75ed
add esp, 8
test eax, eax
je 0x46be0b
push esi
push edi
lea eax, [esp + 0xcc8]
push str._s_s.
push eax
call fcn.004d5ee1
add esp, 0x10
mov dword [esp + 0x18], 1
mov eax, dword [esp + 0x10e4]
cmp dword [eax], ebp
je 0x46be33
cmp dword [eax + 4], ebp
je 0x46be33
mov eax, dword [esp + 0x10e8]
cmp dword [eax], ebp
je 0x46be33
cmp dword [eax + 4], ebp
je 0x46be33
mov dword [esp + 0x20], 1
mov esi, dword [esp + 0x10ec]
push esi
call fcn.004d78fa
push esi
call fcn.004d6713
add esp, 8
test eax, eax
jbe 0x46be8e
cmp dword [esp + 0x10f0], ebp
jne 0x46be68
cmp dword [esp + 0x10f4], ebp
jne 0x46be68
cmp dword [esp + 0x10f8], ebp
je 0x46be8e
push 0x10a18
push 0x40
mov dword [esp + 0x18], 0x850c
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
cmp ebx, ebp
je 0x46c283
lea ecx, [esp + 0x48]
lea edx, [esp + 0xcc0]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x46c269
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x10d4]
mov edi, dword [sym.imp.USER32.dll_PeekMessageW]
push 1
push 0
push 0
lea eax, [esp + 0x38]
push esi
push eax
call edi
test eax, eax
je 0x46bef9
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 1
push 0
push 0
lea eax, [esp + 0x38]
push esi
push eax
call edi
test eax, eax
jne 0x46bed1
mov eax, dword [0x5ba370]
test eax, eax
jne 0x46c25e
mov al, byte [esp + 0x48]
test al, 0x10
jne 0x46c246
test al, 2
je 0x46bf25
mov eax, dword [esp + 0x10fc]
test eax, eax
je 0x46c246
mov eax, dword [esp + 0x18]
test eax, eax
jne 0x46bf8e
lea ecx, [esp + 0x74]
lea edx, [esp + 0x6a8]
push ecx
push edx
call fcn.004d631b
lea eax, [esp + 0x6b0]
push eax
call fcn.004d78fa
mov ecx, dword [esp + 0x10ec]
lea edx, [esp + 0x8bc]
push ecx
push edx
call fcn.004d631b
lea eax, [esp + 0x8c4]
push eax
call fcn.004d78fa
lea ecx, [esp + 0x8c8]
lea edx, [esp + 0x6c0]
push ecx
push edx
call fcn.004d6acd
add esp, 0x20
test eax, eax
je 0x46c246
mov eax, dword [esp + 0x20]
test eax, eax
je 0x46bfde
lea eax, [esp + 0x24]
lea ecx, [esp + 0x5c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
mov edx, dword [esp + 0x10e4]
mov edi, dword [sym.imp.KERNEL32.dll_CompareFileTime]
lea eax, [esp + 0x24]
push edx
push eax
call edi
mov ecx, dword [esp + 0x10e8]
lea edx, [esp + 0x24]
push ecx
push edx
mov esi, eax
call edi
cmp esi, 1
jne 0x46c246
cmp eax, 0xffffffff
jne 0x46c246
mov eax, dword [esp + 0x10ec]
push eax
call fcn.004d6713
add esp, 4
test eax, eax
jbe 0x46c207
mov edi, dword [esp + 0x10f0]
test edi, edi
jne 0x46c01b
mov eax, dword [esp + 0x10f4]
test eax, eax
jne 0x46c01b
mov eax, dword [esp + 0x10f8]
test eax, eax
je 0x46c207
mov edx, dword [esp + 0x10dc]
lea ecx, [esp + 0x74]
push ecx
push edx
lea eax, [esp + 0x2a0]
push str._s_s
push eax
call fcn.004d5ee1
lea ecx, [esp + 0x24]
lea edx, [esp + 0x2a8]
push ecx
push edx
call fcn.004ccca0
add esp, 0x18
test eax, eax
jne 0x46c246
xor esi, esi
test edi, edi
je 0x46c0c2
mov eax, dword [esp + 0x14]
push eax
call fcn.0042d640
add esp, 4
test eax, eax
je 0x46c0c2
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x298]
push ecx
push edx
call fcn.0042d680
add esp, 8
test eax, eax
je 0x46c0c2
mov eax, dword [0x5b5528]
mov edi, dword [esp + 0x10]
push eax
push 1
push 1
push edi
lea ecx, [esp + 0x2a8]
push ebx
push ecx
call fcn.0042df00
push ebx
mov ebp, eax
call fcn.004d78fa
mov edx, dword [esp + 0x1108]
push edx
push ebp
push ebx
call fcn.0046baf0
add esp, 0x28
mov esi, eax
jmp 0x46c0c6
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x10f4]
test eax, eax
je 0x46c136
test esi, esi
jne 0x46c136
mov edx, dword [esp + 0x14]
test edx, edx
je 0x46c0ec
cmp edx, 6
je 0x46c0ec
cmp edx, 0x4a
je 0x46c0ec
cmp edx, 0x55
jne 0x46c13a
lea eax, [esp + 0x298]
push eax
call fcn.0042d7d0
add esp, 4
test eax, eax
je 0x46c136
mov ecx, dword [0x5b5528]
lea edx, [esp + 0x298]
push ecx
push 2
push 1
push edi
push ebx
push edx
call fcn.0042df00
push ebx
mov ebp, eax
call fcn.004d78fa
mov eax, dword [esp + 0x1108]
push eax
push ebp
push ebx
call fcn.0046baf0
add esp, 0x28
mov esi, eax
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10f8]
test eax, eax
je 0x46c203
test esi, esi
jne 0x46c207
test edx, edx
je 0x46c168
cmp edx, 3
je 0x46c168
cmp edx, 0x46
je 0x46c168
cmp edx, 0x47
jne 0x46c246
lea ecx, [edi + edi]
xor eax, eax
mov esi, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
and ecx, 3
cmp edx, 0x46
rep stosb byte es:[edi], al
je 0x46c1cb
cmp edx, 0x47
je 0x46c1cb
cmp edx, 3
push 0x5b9260
jne 0x46c1ae
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x29c]
add ecx, 0xfffffff0
push ecx
push ebx
push edx
call fcn.0040ea80
add esp, 0x10
mov ebp, eax
jmp 0x46c1e9
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x29c]
add eax, 0xfffffff0
push eax
push ebx
push ecx
call fcn.0042db20
add esp, 0x10
mov ebp, eax
jmp 0x46c1e9
push 0
push edx
mov edx, dword [esp + 0x18]
lea eax, [esp + 0x2a0]
add edx, 0xfffffff0
push edx
push ebx
push 0
push eax
call fcn.00492a30
add esp, 0x18
push ebx
call fcn.004d78fa
mov ecx, dword [esp + 0x10f0]
push ecx
push ebp
push ebx
call fcn.0046baf0
add esp, 0x10
mov esi, eax
test esi, esi
je 0x46c246
mov eax, dword [esp + 0x10dc]
lea edx, [esp + 0x74]
push edx
push eax
lea ecx, [esp + 0x2a0]
push str._s_s
push ecx
call fcn.004d5ee1
mov eax, dword [esp + 0x10e8]
add esp, 0x10
lea edx, [esp + 0x298]
push edx
push 0
push 0x180
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x48]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x46beb2
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c0
ret