Function at 0x406610
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x40e9c3
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x41401c]
xor eax, esp
mov dword [esp + 0x298], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x41401c]
xor eax, esp
push eax
lea eax, [esp + 0x2b4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2c4]
xor ebx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ebx
push eax
mov dword [esp + 0x2c0], 2
call fcn.00403410
cmp dword [esp + 0x2d8], ebx
je 0x406727
mov dword [esp + 0x24], vtable.PathLibrary.0
sub esp, 0xc
mov eax, 3
mov byte [esp + 0x2c8], al
mov esi, esp
mov dword [esp + 0x24], eax
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [esp + 0x2dc]
mov dword [esp + 0x40], esp
cmp eax, ebx
je 0x4066c2
mov edi, dword [esp + 0x2d8]
mov ebx, eax
call fcn.00408650
xor ebx, ebx
sub esp, 0xc
mov dword [esp + 0x2d4], 4
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [esp + 0x2f4]
mov dword [esp + 0x38], esp
cmp eax, ebx
je 0x4066fd
mov edi, dword [esp + 0x2f0]
mov ebx, eax
call fcn.00408650
xor ebx, ebx
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x2d8], 3
call fcn.00409160
add esp, 0x1c
mov dword [esp + 0x2bc], 5
mov dword [esp + 0x18], 7
jmp 0x406793
mov dword [esp + 0x20], vtable.PathLibrary.0
mov dword [esp + 0x2bc], 6
sub esp, 0xc
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov eax, dword [esp + 0x2dc]
mov dword [esp + 0x24], 9
mov dword [esp + 0x40], esp
cmp eax, ebx
je 0x406772
mov edi, dword [esp + 0x2d8]
mov ebx, eax
call fcn.00408650
xor ebx, ebx
lea ecx, [esp + 0x34]
push ebx
push ecx
call fcn.00408cf0
add esp, 0x14
mov dword [esp + 0x2bc], 7
mov dword [esp + 0x18], 0x19
mov ecx, dword [eax + 8]
xor ebp, ebp
mov dword [esp + 0x50], vtable.NBUnicodeString.0
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebp
cmp ecx, ebx
je 0x4067c0
mov edi, dword [eax + 4]
mov ebx, ecx
lea esi, [esp + 0x50]
call fcn.00408650
mov ebp, dword [esp + 0x58]
xor ebx, ebx
mov dword [esp + 0x2bc], 8
mov eax, dword [esp + 0x18]
test al, 0x10
je 0x4067ff
and eax, 0xffffffef
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x28], vtable.NBUnicodeString.0
cmp eax, ebx
je 0x4067f7
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ebx
test al, 8
je 0x40680a
and eax, 0xfffffff7
mov dword [esp + 0x18], eax
test al, 4
je 0x40682e
and eax, 0xfffffffb
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], vtable.NBUnicodeString.0
cmp eax, ebx
je 0x40682e
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
test byte [esp + 0x18], 2
je 0x40683a
and dword [esp + 0x18], 0xfffffffd
mov dword [esp + 0x20], vtable.PathLibrary.0
sub esp, 0xc
mov byte [esp + 0x2c8], 0xd
mov esi, esp
mov dword [esp + 0x40], esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp ebp, ebx
je 0x406870
mov edi, dword [esp + 0x60]
mov ebx, ebp
call fcn.00408650
xor ebx, ebx
lea edx, [esp + 0x44]
push edx
call fcn.00409460
add esp, 0x10
mov byte [esp + 0x2bc], 0xe
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], vtable.NBUnicodeString.0
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], ebx
cmp ecx, ebx
je 0x4068ac
mov edi, dword [eax + 4]
mov ebx, ecx
lea esi, [esp + 0x28]
call fcn.00408650
xor ebx, ebx
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], vtable.NBUnicodeString.0
cmp eax, ebx
je 0x4068c9
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x40], ebx
mov dword [esp + 0x3c], ebx
push 0x24c
lea eax, [esp + 0x64]
push ebx
mov byte [esp + 0x2c4], 0x11
push eax
mov dword [esp + 0x68], ebx
call sub.MSVCR90.dll_memset
mov edx, dword [esp + 0x3c]
add esp, 0xc
lea ecx, [esp + 0x5c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebp, eax
xor eax, eax
cmp ebp, 0xffffffff
setne al
cmp eax, ebx
je 0x406a0c
mov ecx, 0x410344
lea eax, [esp + 0x88]
lea ebx, [ebx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406946
cmp dx, bx
je 0x406942
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406946
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x406920
xor eax, eax
jmp 0x40694b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406993
mov ecx, 0x41034c
lea eax, [esp + 0x88]
jmp 0x406960
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x406986
cmp dx, bx
je 0x406982
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x406986
add eax, 4
add ecx, 4
cmp dx, bx
jne 0x406960
xor eax, eax
jmp 0x40698b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
je 0x406993
xor al, al
jmp 0x406995
mov al, 1
test byte [esp + 0x5c], 0x10
je 0x4069a5
cmp byte [esp + 0x2e4], bl
je 0x4069f8
cmp al, bl
jne 0x4069f8
sub esp, 0xc
mov esi, esp
lea eax, [esp + 0x94]
mov dword [esp + 0x2c], esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea edx, [eax + 2]
jmp 0x4069d0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4069d0
sub eax, edx
sar eax, 1
mov edi, eax
lea ebx, [esp + 0x94]
call fcn.00408650
mov edi, dword [esp + 0x28]
call fcn.00407060
xor ebx, ebx
lea eax, [esp + 0x5c]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
cmp eax, ebx
jne 0x40690e
cmp ebp, 0xffffffff
je 0x406a18
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp byte [esp + 0x2e0], bl
je 0x406c75
mov eax, dword [esp + 0x30]
sub esp, 0xc
mov esi, esp
mov dword [esp + 0x2c], esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
cmp eax, ebx
je 0x406a4f
mov edi, dword [esp + 0x38]
mov ebx, eax
call fcn.00408650
xor ebx, ebx
lea ecx, [esp + 0x50]
push ecx
call fcn.004092e0
add esp, 0x10
mov byte [esp + 0x2bc], 0x12
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x24], ebx
je 0x406c5c
jmp 0x406a90
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
push ecx
call fcn.004072c0
sub esp, 0xc
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ebp, dword [eax + 8]
mov dword [esp + 0x2c], esp
cmp ebp, ebx
je 0x406b04
mov edi, dword [eax + 4]
mov dword [esi + 4], ebx
cmp edi, ebx
jbe 0x406b04
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d3e0
add esp, 4
mov dword [esi + 8], eax
cmp eax, ebx
je 0x406b04
lea ecx, [edi + edi]
push ecx
push ebp
push eax
mov dword [esi + 4], edi
call sub.MSVCR90.dll_memcpy
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add esp, 0xc
xor ecx, ecx
mov word [eax + edx*2], cx
sub esp, 0xc
mov byte [esp + 0x2d4], 0x13
mov esi, esp
mov dword [esi], vtable.NBUnicodeString.0
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov ebp, dword [esp + 0x64]
mov dword [esp + 0x4c], esp
cmp ebp, ebx
je 0x406b74
mov edi, dword [esp + 0x60]
mov dword [esi + 4], ebx
cmp edi, ebx
jbe 0x406b74
xor ecx, ecx
lea eax, [edi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d3e0
add esp, 4
mov dword [esi + 8], eax
cmp eax, ebx
je 0x406b74
lea ecx, [edi + edi]
push ecx
push ebp
push eax
mov dword [esi + 4], edi
call sub.MSVCR90.dll_memcpy
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add esp, 0xc
xor ecx, ecx
mov word [eax + edx*2], cx
lea edx, [esp + 0x50]
push edx
mov byte [esp + 0x2d8], 0x12
call fcn.00409160
add esp, 0x1c
mov edi, eax
mov byte [esp + 0x2bc], 0x14
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
call fcn.004072c0
mov ebp, dword [edi + 4]
mov edi, dword [edi + 8]
mov esi, eax
mov eax, dword [esi + 8]
cmp eax, ebx
je 0x406bbc
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
cmp edi, ebx
je 0x406c08
cmp ebp, ebx
jbe 0x406c08
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0040d3e0
add esp, 4
mov dword [esi + 8], eax
cmp eax, ebx
je 0x406c08
lea ecx, [ebp + ebp]
push ecx
push edi
push eax
mov dword [esi + 4], ebp
call sub.MSVCR90.dll_memcpy
mov edx, dword [esi + 4]
mov eax, dword [esi + 8]
add esp, 0xc
xor ecx, ecx
mov word [eax + edx*2], cx
mov byte [esp + 0x2bc], 0x12
mov eax, dword [esp + 0x40]
mov dword [esp + 0x38], vtable.NBUnicodeString.0
cmp eax, ebx
je 0x406c2d
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x40], ebx
mov eax, dword [esp + 0x1c]
mov ecx, dword [eax + 0x10]
sub ecx, dword [eax + 0xc]
mov esi, dword [esp + 0x24]
mov eax, 0x2aaaaaab
imul ecx
sar edx, 1
mov eax, edx
shr eax, 0x1f
inc esi
add eax, edx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x24], esi
cmp esi, eax
jb 0x406a90
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x44], vtable.NBUnicodeString.0
cmp eax, ebx
je 0x406c75
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x30]
cmp eax, ebx
je 0x406c86
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x58]
cmp eax, ebx
je 0x406c97
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x2d0]
mov esi, vtable.NBUnicodeString.0
mov dword [esp + 0x2c8], esi
cmp eax, ebx
je 0x406cbe
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov dword [esp + 0x2d0], ebx
mov eax, dword [esp + 0x2dc]
mov dword [esp + 0x2cc], ebx
mov dword [esp + 0x2d4], esi
cmp eax, ebx
je 0x406ce0
push eax
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x298]
xor ecx, esp
call fcn.0040d3eb
add esp, 0x2ac
ret 0x24