Function at 0x4129f0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
push 0x104
push 0
push 0x420d58
call fcn.00413a30
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
push 0x420d58
call fcn.00413940
add esp, 8
mov dword [ebp - 0x18], 0x103
jmp 0x412a30
mov ecx, dword [ebp - 0x18]
sub ecx, 1
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x18], 0
jl 0x412a49
mov edx, dword [ebp - 0x18]
movsx eax, byte [edx + 0x420d58]
cmp eax, 0x5c
jne 0x412a47
jmp 0x412a49
jmp 0x412a27
mov ecx, dword [ebp - 0x18]
add ecx, 1
mov dword [ebp - 8], ecx
mov dword [ebp - 0x1c], 0x10c
mov dword [ebp - 0xc], 0
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x168], 0
push 0x13e
push 0
lea eax, [ebp - 0x2a8]
push eax
call fcn.00413a30
add esp, 0xc
lea ecx, [ebp - 0x2a8]
push ecx
push 0x420d58
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x412aa8
xor eax, eax
jmp 0x412df3
mov edx, dword [ebp - 0x1c]
push edx
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x168], 1
cmp dword [ebp - 0x168], 0
je 0x412d8f
push 0x420d58
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x10c
mov ecx, dword [ebp - 0x10]
add ecx, eax
push ecx
call fcn.00413940
add esp, 8
lea edx, [ebp - 0x27c]
push edx
mov eax, dword [ebp - 0xc]
imul eax, eax, 0x10c
mov ecx, dword [ebp - 0x10]
add ecx, eax
add ecx, dword [ebp - 8]
push ecx
call fcn.00413940
add esp, 8
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x10c
mov eax, dword [ebp - 0x10]
mov dword [eax + edx + 0x104], 0
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x10c
mov edx, dword [ebp - 0x10]
add edx, ecx
push edx
push 0x420b50
call fcn.00413940
add esp, 8
mov eax, dword [ebp + 0xc]
push eax
push 0x420b50
call fcn.00413950
add esp, 8
mov dword [ebp - 0x14], 0
push 0x13e
push 0
lea ecx, [ebp - 0x164]
push ecx
call fcn.00413a30
add esp, 0xc
lea edx, [ebp - 0x164]
push edx
push 0x420b50
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [ebp - 0x2ac], eax
cmp dword [ebp - 0x2ac], 0xffffffff
je 0x412bbf
push 0x20
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x10c
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx + 0x108], eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x24], 0
cmp dword [ebp - 0x14], 0
je 0x412cce
lea eax, [ebp - 0x138]
push eax
call fcn.00414050
add esp, 4
cmp eax, 0x20
jb 0x412c0e
lea ecx, [ebp - 0x34]
push ecx
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x10c
mov eax, dword [ebp - 0x24]
shl eax, 5
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + edx + 0x108]
add edx, eax
push edx
call fcn.00413940
add esp, 8
jmp 0x412c39
lea eax, [ebp - 0x138]
push eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x10c
mov edx, dword [ebp - 0x24]
shl edx, 5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + ecx + 0x108]
add ecx, edx
push ecx
call fcn.00413940
add esp, 8
mov edx, dword [ebp - 0xc]
imul edx, edx, 0x10c
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + edx + 0x108]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x42
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
add eax, 1
shl eax, 5
push eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x10c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x10c
mov edx, dword [ebp - 0x10]
mov dword [edx + ecx + 0x108], eax
lea eax, [ebp - 0x164]
push eax
mov ecx, dword [ebp - 0x2ac]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x412cc9
mov dword [ebp - 0x14], 0
jmp 0x412bc6
mov edx, dword [ebp - 0x2ac]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x24], 0
jne 0x412ce3
jmp 0x412d29
push fcn.004142f0
push 0x20
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x10c
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + ecx + 0x108]
push eax
call fcn.00414c6c
add esp, 0x10
mov ecx, dword [ebp - 0xc]
imul ecx, ecx, 0x10c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x24]
mov dword [edx + ecx + 0x104], eax
mov ecx, dword [ebp - 0x20]
add ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0x42
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
add ecx, 1
imul ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalReAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x2a8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x412d8a
mov dword [ebp - 0x168], 0
jmp 0x412ac8
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0xc], 0
jne 0x412da3
xor eax, eax
jmp 0x412df3
push fcn.004142f0
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call fcn.00414c6c
add esp, 0x10
cmp dword [ebp - 0x20], 0
jne 0x412de8
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x412df3
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc