Function at 0x403950
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x448d96
mov eax, dword fs:[0]
push eax
sub esp, 0x188
mov eax, dword [0x45e480]
xor eax, esp
mov dword [esp + 0x180], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45e480]
xor eax, esp
push eax
lea eax, [esp + 0x19c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1b0]
mov ebp, dword [esp + 0x1ac]
mov dword [esp + 0x14], eax
xor ebx, ebx
mov eax, ebp
mov edi, ecx
mov dword [esp + 0x50], 0xf
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4039b6
sub eax, ecx
push eax
push ebp
lea ecx, [esp + 0x40]
call fcn.00402db0
mov dword [esp + 0x1a4], ebx
mov eax, dword [esp + 0x4c]
cmp eax, ebx
je 0x403a0f
lea esi, [eax - 1]
cmp eax, esi
ja 0x4039e5
call fcn.00446d2a
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x4039f4
lea eax, [esp + 0x3c]
mov al, byte [eax + esi]
cmp al, 0x2f
je 0x403a0f
cmp al, 0x5c
je 0x403a0f
push 1
push 0x44fd10
lea eax, [esp + 0x40]
call fcn.004025a0
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403a14
sub eax, edx
push eax
push edi
lea eax, [esp + 0x40]
call fcn.004025a0
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x403a37
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov esi, 0xf
mov eax, ebp
mov dword [esp + 0x18], edi
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403a60
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x24]
call fcn.00402db0
mov byte [esp + 0x1a4], 1
cmp edi, 0xffffffff
jne 0x403ac0
mov edi, 0x10
cmp dword [esp + 0x34], edi
jb 0x403a99
mov edx, dword [esp + 0x20]
push edx
call fcn.00413f54
add esp, 4
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], edi
jb 0x403ab8
mov eax, dword [esp + 0x3c]
push eax
call fcn.00413f54
add esp, 4
or eax, 0xffffffff
jmp 0x403c8a
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x403afe
lea esi, [eax - 1]
cmp eax, esi
ja 0x403ad4
call fcn.00446d2a
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x403ae3
lea eax, [esp + 0x20]
mov al, byte [eax + esi]
cmp al, 0x2f
je 0x403afe
cmp al, 0x5c
je 0x403afe
push 1
push 0x44fd10
lea eax, [esp + 0x24]
call fcn.004025a0
lea eax, [esp + 0x80]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403b08
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
lea eax, [esp + 0x24]
call fcn.004025a0
lea eax, [esp + 0x80]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403b30
sub eax, edx
cmp eax, 4
jbe 0x403b6b
test byte [esp + 0x54], 0x10
jne 0x403b6b
cmp byte [esp + 0x1b4], bl
je 0x403b57
lea edi, [esp + 0x1c]
call fcn.00401d70
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
call fcn.00402500
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x403c3d
nop
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403b85
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x24]
call fcn.00402db0
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x403bd7
lea esi, [eax - 1]
cmp eax, esi
ja 0x403bad
call fcn.00446d2a
cmp dword [esp + 0x34], 0x10
mov eax, dword [esp + 0x20]
jae 0x403bbc
lea eax, [esp + 0x20]
mov al, byte [eax + esi]
cmp al, 0x2f
je 0x403bd7
cmp al, 0x5c
je 0x403bd7
push 1
push 0x44fd10
lea eax, [esp + 0x24]
call fcn.004025a0
lea eax, [esp + 0x80]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403be1
sub eax, edx
push eax
lea ecx, [esp + 0x84]
push ecx
lea eax, [esp + 0x24]
call fcn.004025a0
test byte [esp + 0x54], 0x10
jne 0x403c29
cmp byte [esp + 0x1b4], bl
je 0x403c15
lea edi, [esp + 0x1c]
call fcn.00401d70
mov ebx, dword [esp + 0x14]
lea edx, [esp + 0x1c]
push edx
call fcn.00402500
mov edi, dword [esp + 0x18]
xor ebx, ebx
lea eax, [esp + 0x54]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403b80
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 0x10
cmp dword [esp + 0x34], esi
jb 0x403c62
mov ecx, dword [esp + 0x20]
push ecx
call fcn.00413f54
add esp, 4
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
cmp dword [esp + 0x50], esi
jb 0x403c85
mov edx, dword [esp + 0x3c]
push edx
call fcn.00413f54
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x19c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x180]
xor ecx, esp
call fcn.00430bbd
add esp, 0x194
ret