Function at 0x487de6
Capabilities:
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x51a70c
call fcn.004b9729
mov eax, dword [ebp + 0x24]
xor ebx, ebx
mov esi, ebx
mov dword [ebp - 0x274], esi
xor ecx, ecx
inc ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp - 0x260]
push ecx
push eax
push ebx
push ecx
mov ecx, esp
push str.NC2k59fiAzU5bTjUWs2t7ukCEmuZE1DiGhUHhoDfiNkISkVNRJjMBEXLmMSARkRfS4vZREVARd7eiA9PzY5cGgDPwUCZzZ7AWBtEjYZOTJ6HyImHTwWGBMkExxkJBQXG2UTeygIYiAoLDsPGGYjHjsuYyksGwQ7NS1hN2sBNGMMEXcEESkuCH91Ihc9ESUWaxUldwYaEzZDj05FSgvMDx3Aic8FicRGz4lKDkjNQMNMDcfF207c2hmAx0oBTw5DyUMCAM1KBVxNyRnMTN7NzYbARESABZjARIiOj87MzIPKgEsOw1PGQkAB8EEyQAIDsfIGwQNwEyBCkFIAAAAOEjlSxMoZ29DCn1hifl_
call fcn.00466d59
lea eax, [ebp - 0x2a4]
push eax
call fcn.0048626d
pop ecx
pop ecx
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.0046929c
push eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.0046fd8a
add esp, 0xc
push eax
lea eax, [ebp - 0x27c]
mov byte [ebp - 4], 3
push eax
call fcn.0046fd8a
add esp, 0xc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ecx, dword [ebp - 0x27c]
mov edi, eax
add ecx, 0xfffffff0
mov dword [ebp - 0x278], edi
call fcn.0040ce73
mov ecx, dword [ebp - 0x280]
add ecx, 0xfffffff0
call fcn.0040ce73
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 1
call fcn.004690f8
cmp edi, 0xffffffff
je 0x488086
lea eax, [ebp - 0x234]
mov dword [ebp - 0x26c], ebx
push eax
lea ecx, [ebp - 0x26c]
call fcn.00466d59
mov byte [ebp - 4], 4
mov dword [ebp - 0x270], ebx
call fcn.0040cacd
push eax
lea ecx, [ebp - 0x270]
call fcn.00466c6a
push ebx
push ecx
mov ecx, esp
mov byte [ebp - 4], 5
push str.wrsuWsHY_EipqmTKd3__IiUK6GCEQfhP9gbbDw_GB02Jy5gFRUgMg12ECcSLiU2IWYLOhUwFzIkFBRjCwZgLik8MiM5Pz19DRpgICY7ET0NYzkIZzgzB2UddTwBKyoVHGkYey0KJT8MHAMXAAwPS01MDU9CmMsKmAXGyFlZGA7NRk8BxwNdSA1DGMrMDMQDSN9CCEyIBkkIWwfJxo4NDkjLSI6cSQ2BBgNJCAbGTkYLQRmJRolN24FAh0ZZD0iHWI3KwAAAKgjhSwo3_tKcwTVOMXbg
call fcn.00466d59
lea eax, [ebp - 0x298]
push eax
call fcn.0048626d
pop ecx
pop ecx
or esi, 1
mov byte [ebp - 4], 6
mov ecx, eax
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x274], esi
call fcn.0046929c
push eax
lea ecx, [ebp - 0x26c]
call fcn.00470992
test eax, eax
je 0x487f70
push ebx
push ecx
mov ecx, esp
push str.fvtP1VVxVLlkaKZsPgB2PyIOKjAY8Ez1VOXbHtnLmMaNS8KEBtiZiJ6BAU1cQoiCjciGAsPGWcqJQIDGAplbww1FGQgexY7GBsOfwp1FhZ6KiAEKhkKcjhmNRYVLWoGATQuAB4cBzRqdX8hCzUZH3kwOCUOMGUhJQciOBBjKiM2Fzw9NTIeNQxxBCQHBSIPACIGBRRjd20rCB0QYhksbxkHLwseEiV2AwU5Ih4iEwl4Dm09KjQnNjU5AmZuHzMgIQJqGX0oG2UHIgs4YBIbAzMjMRk_DQdqYSkDZhILBz4_PnZ1HgM7KxIcAggQCQ0eDTkQJmhZRI8PBUFbwdhcB0zHSUzZDYPNCkNJRAcFgNmLwApYDI4BCs6ZjE3Ni8HPCQ_DS49YwolADYsdjMHCQEWawkCbmsbBz5oBCc6KjocEwYgZg8_dB4fDAQ9CykfPWUPbzB2bjAxCS0AJ3kAAAFBMkOXRTehyq7SuJ_LMw
call fcn.00466d59
lea eax, [ebp - 0x28c]
push eax
call fcn.0048626d
pop ecx
pop ecx
or esi, 2
mov dword [ebp - 4], 7
mov ecx, eax
mov dword [ebp - 0x268], esi
mov dword [ebp - 0x274], esi
call fcn.0046929c
push eax
lea ecx, [ebp - 0x26c]
call fcn.00470992
mov byte [ebp - 0x261], 1
test eax, eax
jne 0x487f76
mov byte [ebp - 0x261], bl
mov eax, dword [ebp - 0x268]
test al, 2
je 0x487f9a
and eax, 0xfffffffd
lea ecx, [ebp - 0x28c]
mov dword [ebp - 0x268], eax
call fcn.004690f8
mov eax, dword [ebp - 0x268]
mov dword [ebp - 4], 5
test al, 1
je 0x487fb9
and eax, 0xfffffffe
lea ecx, [ebp - 0x298]
mov dword [ebp - 0x268], eax
call fcn.004690f8
cmp byte [ebp - 0x261], 0
je 0x48801d
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x270]
push 0x104
call fcn.004688f2
lea ecx, [ebp - 0x234]
push ecx
push esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x270]
call fcn.004744de
mov esi, dword [ebp - 0x270]
push ecx
mov edi, esp
lea eax, [esi - 0x10]
push eax
call fcn.00467063
pop ecx
add eax, 0x10
lea ecx, [ebp + 0xc]
mov dword [edi], eax
call fcn.00484bc9
test eax, eax
je 0x488070
mov edi, dword [ebp - 0x278]
jmp 0x488023
mov esi, dword [ebp - 0x270]
lea eax, [ebp - 0x260]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x48805a
lea ecx, [esi - 0x10]
call fcn.0040ce73
mov ecx, dword [ebp - 0x26c]
mov byte [ebp - 4], 1
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov esi, dword [ebp - 0x268]
jmp 0x487ea3
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
push 1
pop eax
cmovne ebx, eax
lea ecx, [esi - 0x10]
call fcn.0040ce73
mov ecx, dword [ebp - 0x26c]
lea ecx, [ecx - 0x10]
call fcn.0040ce73
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0040ce73
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00498ebb
lea ecx, [ebp + 0xc]
call fcn.00498ebb
mov eax, ebx
call fcn.004b96d8
ret