Function at 0x10040120
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x10123ebc
mov eax, dword fs:[0]
push eax
sub esp, 0x1a4
mov eax, dword [0x1015d2f0]
xor eax, esp
mov dword [esp + 0x19c], eax
push ebx
push ebp
push esi
mov eax, dword [0x1015d2f0]
xor eax, esp
push eax
lea eax, [esp + 0x1b4]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x1c4]
xor ebx, ebx
push 0xffffffffffffffff
mov esi, ecx
lea eax, [edi + 0xa4]
push ebx
push eax
lea ecx, [esp + 0x24]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], ebx
mov byte [esp + 0x28], bl
call fcn.100057a0
push 1
push 0x1013af20
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c4], ebx
call fcn.10006400
push 0xffffffffffffffff
push ebx
push ebp
lea ecx, [esp + 0x24]
call fcn.10006300
push 1
push 0x1013af20
lea ecx, [esp + 0x20]
call fcn.10006400
push esi
lea esi, [esp + 0x38]
call fcn.10032260
add esp, 4
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x24]
mov byte [esp + 0x1c8], 1
call fcn.10006300
mov esi, 0x10
mov byte [esp + 0x1bc], bl
cmp dword [esp + 0x4c], esi
jb 0x10040201
mov eax, dword [esp + 0x38]
push eax
call fcn.100f4085
add esp, 4
push 2
push 0x1013afe0
lea ecx, [esp + 0x20]
call fcn.10006400
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x30], esi
jae 0x1004021f
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x6c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x10040250
cmp dword [esp + 0x30], esi
jb 0x10040381
mov edx, dword [esp + 0x1c]
push edx
jmp 0x10040379
cmp byte [esp + 0x98], 0x2e
je 0x1004034e
test byte [esp + 0x6c], 0x10
jne 0x1004034e
push 7
mov esi, 0xf
push str..record
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.10004290
mov byte [esp + 0x1bc], 2
lea eax, [esp + 0x98]
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x100402a8
sub eax, edx
push eax
lea eax, [esp + 0x9c]
push eax
lea ecx, [esp + 0x58]
call fcn.10004290
mov byte [esp + 0x1bc], 3
cmp dword [esp + 0x4c], 0x10
mov eax, dword [esp + 0x38]
jae 0x100402da
lea eax, [esp + 0x38]
mov ecx, dword [esp + 0x48]
push ecx
push ebx
push eax
lea ecx, [esp + 0x5c]
call fcn.10008220
cmp eax, 0xffffffff
je 0x10040313
mov edx, dword [esp + 0x10]
push edx
mov ecx, ebp
call fcn.100043a0
push eax
call fcn.100f39b6
add esp, 4
push eax
push edi
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x24]
call fcn.1003f260
cmp dword [esp + 0x68], 0x10
jb 0x10040327
mov eax, dword [esp + 0x54]
push eax
call fcn.100f4085
add esp, 4
mov byte [esp + 0x1bc], bl
cmp dword [esp + 0x4c], 0x10
mov dword [esp + 0x68], esi
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x1004034e
mov ecx, dword [esp + 0x38]
push ecx
call fcn.100f4085
add esp, 4
mov esi, dword [esp + 0x14]
lea edx, [esp + 0x6c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10040250
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x30], 0x10
jb 0x10040381
mov eax, dword [esp + 0x1c]
push eax
call fcn.100f4085
add esp, 4
mov ecx, dword [esp + 0x1b4]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x19c]
xor ecx, esp
call fcn.100f30a6
add esp, 0x1b0
ret 4