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

Disassembly:
push 0xffffffffffffffff
push 0x43e7dd
mov eax, dword fs:[0]
push eax
sub esp, 0x924
mov eax, dword [0x44a2b8]
xor eax, esp
mov dword [esp + 0x920], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44a2b8]
xor eax, esp
push eax
lea eax, [esp + 0x938]
mov dword fs:[0], eax
mov eax, dword [ecx]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x1c], ecx
jbe 0x40d789
add eax, 0xffffffff
push 0x206
mov dword [ecx], eax
lea eax, [esp + 0x322]
push ebx
push eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x24], ebx
lea ebp, [ebx + 1]
mov word [esp + 0x328], bx
call fcn.00429d70
add esp, 0xc
push 0x206
lea ecx, [esp + 0x52a]
push ebx
push ecx
mov word [esp + 0x530], bx
call fcn.00429d70
add esp, 0xc
push 0x206
lea edx, [esp + 0x732]
push ebx
push edx
mov word [esp + 0x738], bx
call fcn.00429d70
add esp, 0xc
push 0x250
lea eax, [esp + 0xd0]
push ebx
push eax
call fcn.00429d70
mov eax, 0x44f428
add esp, 0xc
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], bx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d3b4
sub eax, edx
sar eax, 1
push eax
push 0x44f428
lea esi, [esp + 0x48]
call fcn.00401d00
mov dword [esp + 0x940], ebx
mov eax, dword [esp + 0x54]
lea esi, [eax - 1]
cmp esi, eax
jbe 0x40d3e9
call fcn.0042588d
mov eax, dword [esp + 0x44]
mov edi, 8
cmp dword [esp + 0x58], edi
jae 0x40d3fc
lea eax, [esp + 0x44]
cmp word [eax + esi*2], 0x5c
je 0x40d454
lea ecx, [esp + 0x40]
push ecx
mov ebx, 0x4420e8
lea esi, [esp + 0x98]
call fcn.004100d0
add esp, 4
push 0xffffffffffffffff
push 0
lea ecx, [esp + 0x48]
mov byte [esp + 0x948], 1
call fcn.00401da0
mov byte [esp + 0x940], 0
cmp dword [esp + 0xac], edi
jb 0x40d452
mov edx, dword [esp + 0x98]
push edx
call fcn.004250ac
add esp, 4
xor ebx, ebx
lea ecx, [esp + 0x40]
lea edi, [esp + 0x78]
call fcn.0040c8b0
mov byte [esp + 0x940], 2
mov ecx, dword [esp + 0x7c]
mov esi, 8
cmp dword [esp + 0x90], esi
jae 0x40d47f
lea ecx, [esp + 0x7c]
lea edx, [esp + 0x31c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x40d486
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x320]
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x20], eax
je 0x40d738
cmp ebp, ebx
je 0x40d72f
mov edx, dword [esp + 0x1c]
cmp dword [edx], ebx
jbe 0x40d72f
mov ebp, 7
lea eax, [esp + 0xf8]
mov dword [esp + 0x74], ebp
mov dword [esp + 0x70], ebx
mov word [esp + 0x60], bx
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d4f0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xfc]
push eax
lea esi, [esp + 0x64]
call fcn.00401d00
mov byte [esp + 0x940], 3
mov eax, dword [esp + 0x70]
push 0x442410
mov edi, 1
mov ecx, esi
call fcn.00410180
test eax, eax
je 0x40d6f5
mov eax, dword [esp + 0x70]
push 0x442414
mov edi, 2
mov ecx, esi
call fcn.00410180
test eax, eax
je 0x40d6f5
test byte [esp + 0xcc], 0x10
je 0x40d6f5
lea eax, [esp + 0xf8]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
lea edx, [eax + 2]
jmp 0x40d580
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x40d580
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0xfc]
push ecx
lea esi, [esp + 0x2c]
call fcn.00401d00
mov edx, esi
push edx
lea edi, [esp + 0xb4]
mov byte [esp + 0x944], 4
call fcn.0041df80
add esp, 4
mov esi, 8
mov byte [esp + 0x940], 6
cmp dword [esp + 0x3c], esi
jb 0x40d5db
mov eax, dword [esp + 0x28]
push eax
call fcn.004250ac
add esp, 4
cmp dword [esp + 0xc8], esi
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebx
mov word [esp + 0x28], bx
jae 0x40d5ff
lea ecx, [esp + 0xb4]
lea edx, [esp + 0x72c]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bx
jne 0x40d606
lea ecx, [esp + 0x72c]
call fcn.0040cf40
test eax, eax
je 0x40d64c
mov eax, dword [esp + 0xc4]
push str.all_users
mov edi, 9
lea ecx, [esp + 0xb4]
call fcn.00410180
test eax, eax
jne 0x40d6db
lea ecx, [esp + 0x40]
push ecx
lea ebx, [esp + 0xfc]
lea esi, [esp + 0x98]
call fcn.004100d0
add esp, 4
mov byte [esp + 0x940], 7
mov ecx, dword [esp + 0x98]
mov esi, 8
cmp dword [esp + 0xac], esi
jae 0x40d68b
lea ecx, [esp + 0x98]
lea edx, [esp + 0x524]
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
test ax, ax
jne 0x40d692
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x524]
push edx
push eax
call fcn.0040ca70
add esp, 8
add dword [esp + 0x14], eax
adc dword [esp + 0x18], edx
cmp dword [esp + 0xac], esi
jb 0x40d6d9
mov ecx, dword [esp + 0x98]
push ecx
call fcn.004250ac
add esp, 4
xor ebx, ebx
cmp dword [esp + 0xc8], 8
jb 0x40d6f5
mov edx, dword [esp + 0xb4]
push edx
call fcn.004250ac
add esp, 4
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0xcc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov byte [esp + 0x940], 2
cmp dword [esp + 0x74], 8
mov ebp, eax
jb 0x40d4ba
mov edx, dword [esp + 0x60]
push edx
call fcn.004250ac
add esp, 4
jmp 0x40d4ba
mov eax, dword [esp + 0x20]
mov esi, 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esp + 0x90], esi
jb 0x40d755
mov eax, dword [esp + 0x7c]
push eax
call fcn.004250ac
add esp, 4
cmp dword [esp + 0x58], esi
mov dword [esp + 0x90], 7
mov dword [esp + 0x8c], ebx
mov word [esp + 0x7c], bx
jb 0x40d77f
mov ecx, dword [esp + 0x44]
push ecx
call fcn.004250ac
add esp, 4
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
jmp 0x40d78d
xor eax, eax
xor edx, edx
mov ecx, dword [esp + 0x938]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x920]
xor ecx, esp
call fcn.00424e88
add esp, 0x930
ret