Function at 0x402950
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x264
push ebx
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi]
mov dword [ebp - 4], ebx
test ebx, ebx
je 0x402dc2
push esi
mov eax, dword [ebx + 0x10]
mov dword [edi], eax
mov dword [ebx + 0x10], 0
mov ecx, dword [ebx]
mov edx, ecx
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402980
sub edx, esi
sar edx, 1
lea esi, [edx*2 + 0xa]
test esi, esi
jne 0x40299f
mov dword [ebp - 0xc], esi
jmp 0x4029b8
push esi
call fcn.00416e4b
push esi
mov esi, eax
mov dword [ebp - 0xc], eax
push 0
push esi
call fcn.00413b10
mov ecx, dword [ebx]
add esp, 0x10
mov edx, esi
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4029c0
lea ecx, [esi - 2]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x4029d3
mov eax, dword [0x429350]
mov dword [ecx], eax
mov eax, dword [0x429354]
mov dword [ecx + 4], eax
mov ax, word [0x429358]
mov word [ecx + 8], ax
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
je 0x402d89
mov esi, eax
nop dword [eax]
nop dword [eax + eax]
test byte [ebp - 0x264], 0x10
je 0x402c45
cmp word [ebp - 0x238], 0x2e
je 0x402d69
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
lea eax, [ebp - 0x238]
mov dword [ebp - 0x10], 1
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebx, eax
lea esi, [ebx + 1]
test esi, esi
jne 0x402a6a
xor edi, edi
jmp 0x402a7e
push esi
call fcn.00416e4b
push esi
mov edi, eax
push 0
push edi
call fcn.00413b10
add esp, 0x10
push 0
push 0
push ebx
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x238]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call fcn.0041d4ce
mov ecx, dword [0x43a88c]
mov edi, eax
push 1
push 0
push 0
push str.white_folders
push ecx
push ecx
call fcn.004105b0
push 0x42931c
mov eax, dword [eax + 0x10]
push dword [eax + 0x18]
call fcn.00401ea0
mov ebx, eax
add esp, 0x24
mov dword [ebp - 0x14], ebx
mov esi, ebx
cmp byte [ebx], 0
je 0x402b00
push esi
push edi
call fcn.00413800
add esp, 8
test eax, eax
jne 0x402b81
mov eax, esi
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402af0
sub eax, edx
inc esi
add esi, eax
cmp byte [esi], cl
jne 0x402ad6
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x14]
call fcn.00416e46
add esp, 4
test edi, edi
je 0x402b1b
push edi
call fcn.00416e46
add esp, 4
test ebx, ebx
je 0x402d60
test byte [ebp - 0x264], 4
jne 0x402d60
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
mov edx, ecx
lea esi, [edx + 2]
nop word [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402b40
sub edx, esi
lea esi, [ebp - 0x238]
sar edx, 1
lea edi, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402b60
sub esi, edi
sar esi, 1
lea eax, [esi + edx]
lea esi, [eax*2 + 4]
test esi, esi
jne 0x402b88
xor ebx, ebx
jmp 0x402ba1
xor ebx, ebx
jmp 0x402b03
push esi
call fcn.00416e4b
push esi
mov ebx, eax
push 0
push ebx
call fcn.00413b10
mov eax, dword [ebp - 4]
add esp, 0x10
mov ecx, dword [eax]
mov edx, ebx
sub edx, ecx
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402ba5
lea edi, [ebx - 2]
nop dword [eax + eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402bc0
mov eax, dword [0x42935c]
lea edx, [ebp - 0x238]
mov dword [edi], eax
mov esi, edx
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402be0
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402bf0
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
call fcn.00401210
add esp, 4
mov esi, eax
test ebx, ebx
je 0x402c22
push ebx
call fcn.00416e46
add esp, 4
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 4]
cmp dword [edi], 0
jne 0x402c37
mov dword [edi + 4], esi
mov dword [edi], esi
jmp 0x402d66
mov eax, dword [edi + 4]
mov dword [eax + 0x10], esi
mov dword [edi + 4], esi
jmp 0x402d66
lea eax, [ebp - 0x238]
push eax
call fcn.00401ce0
add esp, 4
test eax, eax
je 0x402d69
cmp dword [ebp - 0x248], 0
jne 0x402c75
cmp dword [ebp - 0x244], 0x400
jbe 0x402d69
mov ecx, dword [ebx]
mov edx, ecx
lea esi, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402c80
sub edx, esi
lea esi, [ebp - 0x238]
sar edx, 1
lea edi, [esi + 2]
nop dword [eax + eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x402ca0
sub esi, edi
sar esi, 1
lea eax, [esi + edx]
lea esi, [eax*2 + 4]
test esi, esi
jne 0x402cc1
xor ebx, ebx
jmp 0x402cda
push esi
call fcn.00416e4b
push esi
mov ebx, eax
push 0
push ebx
call fcn.00413b10
mov eax, dword [ebp - 4]
add esp, 0x10
mov ecx, dword [eax]
mov edx, ebx
sub edx, ecx
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x402ce0
lea edi, [ebx - 2]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x402cf3
mov eax, dword [0x42935c]
lea edx, [ebp - 0x238]
mov dword [edi], eax
mov esi, edx
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x402d10
sub edx, esi
lea edi, [ebx - 2]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x402d20
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x248]
xor ecx, ecx
or ecx, dword [ebp - 0x244]
push eax
push ecx
push ebx
call fcn.004026c0
add esp, 0xc
test ebx, ebx
je 0x402d60
push ebx
call fcn.00416e46
add esp, 4
mov edi, dword [ebp + 8]
mov ebx, dword [ebp - 4]
mov esi, dword [ebp - 8]
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402a20
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [ebp - 0xc]
test esi, esi
je 0x402d96
push esi
call fcn.00416e46
add esp, 4
mov eax, dword [ebx]
test eax, eax
je 0x402dab
push eax
call fcn.00416e46
add esp, 4
mov dword [ebx], 0
push ebx
call fcn.00416e46
mov ebx, dword [edi]
add esp, 4
mov dword [ebp - 4], ebx
test ebx, ebx
jne 0x40296c
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret