Function at 0x403950
Capabilities:
Enumerate files on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x457ae2
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x472cf0]
xor eax, esp
mov dword [esp + 0x1bc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x472cf0]
xor eax, esp
push eax
lea eax, [esp + 0x1d4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1ec]
mov ebp, dword [esp + 0x1e4]
mov ecx, dword [esp + 0x1f0]
mov edi, dword [esp + 0x1e8]
mov dword [esp + 0x18], eax
xor ebx, ebx
mov eax, ebp
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], ebx
mov byte [esp + 0x5c], bl
lea ecx, [eax + 1]
mov dl, byte [eax]
add eax, 1
cmp dl, bl
jne 0x4039c6
sub eax, ecx
push eax
push ebp
lea ecx, [esp + 0x60]
call fcn.00401f40
mov eax, dword [esp + 0x6c]
cmp eax, ebx
mov dword [esp + 0x1dc], ebx
je 0x403a21
lea esi, [eax - 1]
cmp eax, esi
ja 0x4039f7
call fcn.004395d0
cmp dword [esp + 0x70], 0x10
mov eax, dword [esp + 0x5c]
jae 0x403a06
lea eax, [esp + 0x5c]
mov al, byte [eax + esi]
cmp al, 0x2f
je 0x403a21
cmp al, 0x5c
je 0x403a21
push 1
push 0x45b7c4
lea ecx, [esp + 0x60]
call fcn.00402140
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403a26
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x60]
call fcn.00402140
mov eax, dword [esp + 0x5c]
mov edi, 0x10
cmp dword [esp + 0x70], edi
jae 0x403a4f
lea eax, [esp + 0x5c]
lea edx, [esp + 0x90]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0x14], eax
mov esi, 0xf
mov eax, ebp
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403a78
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x44]
call fcn.00401f40
cmp dword [esp + 0x14], 0xffffffff
mov byte [esp + 0x1dc], 1
jne 0x403ad7
cmp dword [esp + 0x54], edi
jb 0x403ab0
mov eax, dword [esp + 0x40]
push eax
call fcn.0041d9db
add esp, 4
cmp dword [esp + 0x70], edi
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jb 0x403acf
mov ecx, dword [esp + 0x5c]
push ecx
call fcn.0041d9db
add esp, 4
or eax, 0xffffffff
jmp 0x403dff
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x403b15
lea esi, [eax - 1]
cmp eax, esi
ja 0x403aeb
call fcn.004395d0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x403afa
lea eax, [esp + 0x40]
mov al, byte [eax + esi]
cmp al, 0x2f
je 0x403b15
cmp al, 0x5c
je 0x403b15
push 1
push 0x45b7c4
lea ecx, [esp + 0x44]
call fcn.00402140
lea eax, [esp + 0xbc]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403b20
sub eax, edx
push eax
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x44]
call fcn.00402140
lea eax, [esp + 0xbc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403b47
sub eax, edx
cmp eax, 4
jbe 0x403c04
test byte [esp + 0x90], 0x10
jne 0x403c04
cmp byte [esp + 0x1f4], bl
je 0x403b7f
lea eax, [esp + 0x3c]
push eax
call fcn.00402040
add esp, 4
mov edi, dword [esp + 0x1c]
cmp edi, ebx
je 0x403bf4
push edi
lea ecx, [esp + 0x78]
call fcn.004023b0
cmp byte [esp + 0x1f4], bl
mov byte [esp + 0x1dc], 2
je 0x403baf
lea ecx, [esp + 0x74]
push ecx
call fcn.00402040
add esp, 4
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004028b0
add esp, 0xc
mov ecx, dword [esp + 0x18]
push eax
mov byte [esp + 0x1e0], 3
call fcn.004038a0
lea ecx, [esp + 0x20]
call fcn.00401ac0
lea ecx, [esp + 0x74]
mov byte [esp + 0x1dc], 1
call fcn.00401ac0
jmp 0x403c08
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x3c]
push edx
call fcn.004038a0
jmp 0x403c08
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x90]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x403dae
mov eax, ebp
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403c28
sub eax, edx
push eax
push ebp
lea ecx, [esp + 0x44]
call fcn.00401f40
mov eax, dword [esp + 0x50]
cmp eax, ebx
je 0x403c7c
lea esi, [eax - 1]
cmp eax, esi
ja 0x403c52
call fcn.004395d0
cmp dword [esp + 0x54], 0x10
mov eax, dword [esp + 0x40]
jae 0x403c61
lea eax, [esp + 0x40]
mov al, byte [eax + esi]
cmp al, 0x2f
je 0x403c7c
cmp al, 0x5c
je 0x403c7c
push 1
push 0x45b7c4
lea ecx, [esp + 0x44]
call fcn.00402140
lea eax, [esp + 0xbc]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403c86
sub eax, edx
push eax
lea edx, [esp + 0xc0]
push edx
lea ecx, [esp + 0x44]
call fcn.00402140
test byte [esp + 0x90], 0x10
jne 0x403d93
cmp byte [esp + 0x1f4], bl
je 0x403cc7
lea eax, [esp + 0x3c]
push eax
call fcn.00402040
add esp, 4
cmp edi, ebx
je 0x403d85
mov eax, edi
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403cf0
sub eax, edx
push eax
push edi
lea ecx, [esp + 0x7c]
call fcn.00401f40
cmp byte [esp + 0x1f4], bl
mov byte [esp + 0x1dc], 4
je 0x403d24
lea ecx, [esp + 0x74]
push ecx
call fcn.00402040
add esp, 4
lea edx, [esp + 0x74]
push edx
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x28]
push ecx
call fcn.004028b0
add esp, 0xc
mov ecx, dword [esp + 0x18]
push eax
mov byte [esp + 0x1e0], 5
call fcn.004038a0
mov esi, 0x10
cmp dword [esp + 0x38], esi
jb 0x403d65
mov edx, dword [esp + 0x24]
push edx
call fcn.0041d9db
add esp, 4
cmp dword [esp + 0x8c], esi
mov byte [esp + 0x1dc], 1
jb 0x403d93
mov eax, dword [esp + 0x78]
push eax
call fcn.0041d9db
add esp, 4
jmp 0x403d93
lea ecx, [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.004038a0
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x90]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 0x10
cmp dword [esp + 0x54], esi
jb 0x403dd7
mov edx, dword [esp + 0x40]
push edx
call fcn.0041d9db
add esp, 4
cmp dword [esp + 0x70], esi
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
jb 0x403dfa
mov eax, dword [esp + 0x5c]
push eax
call fcn.0041d9db
add esp, 4
mov eax, 1
mov ecx, dword [esp + 0x1d4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1bc]
xor ecx, esp
call fcn.0043a2e3
add esp, 0x1cc
ret