Function at 0x1001d860
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10099b47
mov eax, dword fs:[0]
push eax
sub esp, 0x280
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x278], eax
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x290]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov edi, dword [0x100f5084]
mov esi, dword [ebp + 0x10]
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x298], 0
mov ecx, 0x100a4cdc
mov eax, dword [esi]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1001d8fb
test dx, dx
je 0x1001d8f7
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1001d8fb
add eax, 4
add ecx, 4
test dx, dx
jne 0x1001d8d5
xor eax, eax
jmp 0x1001d900
sbb eax, eax
or eax, 1
or ebx, 0xffffffff
test eax, eax
je 0x1001d96a
push esi
push dword [esp + 0x28]
lea eax, [esp + 0x1c]
push eax
call sym.HncFoundation.dll_public:_static_class_CHncStringW___cdecl_Hnc::Util::StringUtil::GetPathName_class_CHncStringW_const___class_CHncStringW_const__
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x29c], 1
call sym.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_class_CHncStringW_const__
mov byte [esp + 0x298], 0
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
cmp dword [ecx], 0xfffffffe
je 0x1001da05
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
test eax, eax
jg 0x1001da0b
mov eax, dword [esp + 0x14]
add eax, 0xfffffff4
push eax
call esi
add esp, 4
jmp 0x1001da0b
push 0x100a5310
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edi
call sym.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_unsigned_short_int_const__
lea eax, [esp + 0x14]
mov byte [esp + 0x298], 2
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
call sym.HncFoundation.dll_public:_static_class_CHncStringW___cdecl_Hnc::Util::StringUtil::GetPathName_class_CHncStringW_const___class_CHncStringW_const__
add esp, 0xc
push eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x29c], 3
call sym.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_class_CHncStringW_const__
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff4
cmp dword [ecx], 0xfffffffe
je 0x1001d9d8
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
test eax, eax
jg 0x1001d9de
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call esi
add esp, 4
jmp 0x1001d9de
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov byte [esp + 0x298], 0
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
cmp dword [ecx], 0xfffffffe
je 0x1001da0b
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1001da0b
push ecx
call esi
add esp, 4
jmp 0x1001da0b
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x28], eax
cmp eax, 0xffffffff
jne 0x1001da33
mov eax, dword [esp + 0x20]
mov dword [eax], 0
jmp 0x1001dc45
push 0xc
call dword [sym.imp.MSVCR120.dll_void____cdecl_operator_new_unsigned_int_]
mov edi, eax
add esp, 4
test edi, edi
je 0x1001da68
xorps xmm0, xmm0
movq qword [edi], xmm0
mov dword [edi + 8], 0
mov dword [edi], 0
mov dword [edi + 4], 0
mov dword [edi + 8], 0
jmp 0x1001da6a
xor edi, edi
mov dword [esp + 0x30], edi
mov byte [esp + 0x298], 4
jmp 0x1001da80
mov esi, dword [0x100f5084]
lea ebx, [esp + 0x60]
mov dword [esp + 0x14], esi
lea ecx, [ebx + 2]
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x1001da91
mov eax, dword [esi - 0xc]
sub ebx, ecx
lea ecx, [esi - 0xc]
sar ebx, 1
cmp eax, 1
jg 0x1001dab0
cmp ebx, dword [esi - 4]
jle 0x1001db16
cmp eax, 0xfffffffe
je 0x1001dad5
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1001dacb
push ecx
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov esi, dword [0x100f5084]
mov dword [esp + 0x14], esi
test ebx, ebx
jne 0x1001dadf
mov dword [esp + 0x14], esi
jmp 0x1001db2c
lea esi, [ebx + 9]
and esi, 0xfffffff8
lea eax, [esi*2 + 0xc]
push eax
call fcn.1009427d
add esp, 4
test eax, eax
je 0x1001db35
lea ecx, [esi - 1]
mov dword [eax], 1
mov dword [eax + 8], ecx
lea esi, [eax + 0xc]
xor ecx, ecx
mov dword [esp + 0x14], esi
mov word [eax + ebx*2 + 0xc], cx
mov dword [eax + 4], ebx
test ebx, ebx
jle 0x1001db2c
lea eax, [ebx + ebx]
push eax
lea eax, [esp + 0x64]
push eax
push esi
call sub.MSVCR120.dll_memcpy
add esp, 0xc
xor eax, eax
mov dword [esi - 8], ebx
mov word [esi + ebx*2], ax
lea eax, [esp + 0x14]
mov byte [esp + 0x298], 5
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x20]
push eax
call sym.HncFoundation.dll_public:_static_class_CHncStringW___cdecl_Hnc::Util::StringUtil::GetPathName_class_CHncStringW_const___class_CHncStringW_const__
add esp, 0xc
mov esi, eax
mov byte [esp + 0x298], 6
mov eax, dword [edi + 4]
cmp esi, eax
jae 0x1001db93
mov ecx, dword [edi]
cmp ecx, esi
ja 0x1001db93
sub esi, ecx
sar esi, 2
cmp eax, dword [edi + 8]
jne 0x1001db7c
push ecx
mov ecx, edi
call fcn.1001de30
mov eax, dword [edi]
mov ecx, dword [edi + 4]
lea edx, [eax + esi*4]
mov byte [esp + 0x298], 7
test ecx, ecx
je 0x1001dbbc
push edx
jmp 0x1001dbb0
cmp eax, dword [edi + 8]
jne 0x1001dba0
push ecx
mov ecx, edi
call fcn.1001de30
mov ecx, dword [edi + 4]
mov byte [esp + 0x298], 8
test ecx, ecx
je 0x1001dbbc
push esi
mov eax, dword [0x100f5084]
mov dword [ecx], eax
call sym.HncFoundation.dll_public:_int___thiscall_CHncStringW::Assign_class_CHncStringW_const__
add dword [edi + 4], 4
or ebx, 0xffffffff
mov ecx, dword [esp + 0x18]
add ecx, 0xfffffff4
cmp dword [ecx], 0xfffffffe
je 0x1001dbef
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
test eax, eax
jg 0x1001dbf5
mov eax, dword [esp + 0x18]
add eax, 0xfffffff4
push eax
call esi
add esp, 4
jmp 0x1001dbf5
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete___void__]
mov byte [esp + 0x298], 4
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff4
cmp dword [ecx], 0xfffffffe
je 0x1001dc1a
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x1001dc1a
push ecx
call esi
add esp, 4
lea eax, [esp + 0x34]
push eax
push dword [esp + 0x2c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x1001da80
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x20]
mov dword [eax], edi
mov edi, dword [esp + 0x1c]
add edi, 0xfffffff4
cmp dword [edi], 0xfffffffe
je 0x1001dc60
lock xadd dword [edi], ebx
dec ebx
test ebx, ebx
jg 0x1001dc60
push edi
call esi
mov eax, dword [esp + 0x24]
add esp, 4
mov ecx, dword [esp + 0x290]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x278]
xor ecx, esp
call fcn.100944ae
mov esp, ebp
pop ebp
ret