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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004f949
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x200
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [esp + 0x60]
call fcn.10007c30
mov dword [esp + 0x214], 0
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0x60]
cmp ebx, esi
je 0x1001d848
push ecx
push ebx
push esi
mov edx, ebx
lea ecx, [esp + 0x4c]
call fcn.10008930
add esp, 0xc
push dword [ebp + 0x10]
lea eax, [esp + 0x84]
push eax
call sym.KwLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KwLib::Dir::ConfirmDirectory_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
push 0x10059de8
mov edx, eax
mov byte [esp + 0x220], 1
lea ecx, [esp + 0x74]
call fcn.10004d50
add esp, 0xc
mov byte [esp + 0x214], 3
cmp dword [esp + 0x94], 0x10
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
jb 0x1001d897
push dword [esp + 0x80]
call edi
add esp, 4
cmp dword [esp + 0x7c], 0x10
lea ecx, [esp + 0xc8]
lea eax, [esp + 0x68]
mov dword [esp + 0x94], 0xf
cmovae eax, dword [esp + 0x68]
push ecx
push eax
mov dword [esp + 0x98], 0
mov byte [esp + 0x88], 0
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
je 0x1001dd66
mov esi, eax
cmp dword [ebp + 0x18], 0
mov eax, dword [esp + 0xc8]
jne 0x1001d8f6
test al, 2
jne 0x1001dd41
test al, 0x10
jne 0x1001db0d
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
mov byte [esp + 0x214], 4
cmp byte [esp + 0xf4], 0
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
jne 0x1001d93e
xor ecx, ecx
jmp 0x1001d951
lea ecx, [esp + 0xf4]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001d948
sub ecx, edx
push ecx
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x18]
call fcn.10001a10
lea eax, [esp + 0x28]
mov byte [esp + 0x214], 5
push eax
lea eax, [esp + 0x14]
push eax
call sym.KwLib.dll_int___cdecl_KwLib::Dir::GetFileExtension_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char____
add esp, 8
mov byte [esp + 0x214], 4
cmp dword [esp + 0x24], 0x10
mov esi, eax
jb 0x1001d997
push dword [esp + 0x10]
call edi
add esp, 4
test esi, esi
je 0x1001daec
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x28]
dec eax
push eax
push 1
lea eax, [esp + 0x4c]
push eax
call fcn.10003d40
mov esi, eax
lea eax, [esp + 0x28]
cmp eax, esi
je 0x1001d9ee
cmp dword [esp + 0x3c], 0x10
jb 0x1001d9cf
push dword [esp + 0x28]
call edi
add esp, 4
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.10001880
cmp dword [esp + 0x58], 0x10
jb 0x1001d9fe
push dword [esp + 0x44]
call edi
add esp, 4
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x48]
push eax
call sym.KwLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KwLib::StringUtility::Str2Lower_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
mov esi, eax
add esp, 8
lea eax, [esp + 0x28]
cmp eax, esi
je 0x1001da49
cmp dword [esp + 0x3c], 0x10
jb 0x1001da2a
push dword [esp + 0x28]
call edi
add esp, 4
push esi
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xf
mov dword [esp + 0x3c], 0
mov byte [esp + 0x2c], 0
call fcn.10001880
cmp dword [esp + 0x58], 0x10
jb 0x1001da59
push dword [esp + 0x44]
call edi
add esp, 4
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x28]
mov byte [esp + 0x40], 0
mov ecx, ebx
push dword [esp + 0x40]
push eax
call fcn.10008d10
add esp, 8
cmp eax, dword [esp + 0x60]
je 0x1001daec
push dword [ebp + 0x10]
lea eax, [esp + 0x48]
push eax
call sym.KwLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KwLib::Dir::ConfirmDirectory_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
lea ecx, [esp + 0xfc]
mov byte [esp + 0x21c], 6
push ecx
mov edx, eax
lea ecx, [esp + 0x1c]
call fcn.10004d50
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push eax
mov byte [esp + 0x218], 7
call fcn.10003f80
cmp dword [esp + 0x24], 0x10
jb 0x1001dac7
push dword [esp + 0x10]
call edi
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
jb 0x1001daec
push dword [esp + 0x44]
call edi
add esp, 4
mov byte [esp + 0x214], 3
cmp dword [esp + 0x3c], 0x10
jb 0x1001dd3d
push dword [esp + 0x28]
call edi
add esp, 4
jmp 0x1001dd3d
cmp byte [esp + 0xf4], 0
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
jne 0x1001db30
xor ecx, ecx
jmp 0x1001db49
lea ecx, [esp + 0xf4]
lea edx, [ecx + 1]
lea ebx, [ebx]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1001db40
sub ecx, edx
push ecx
lea eax, [esp + 0xf8]
push eax
lea ecx, [esp + 0x18]
call fcn.10001a10
mov byte [esp + 0x214], 8
lea ecx, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
mov edx, 1
mov ebx, dword [esp + 0x20]
cmovae ecx, dword [esp + 0x10]
cmp ebx, edx
cmovb edx, ebx
test edx, edx
je 0x1001dbe0
mov esi, 0x10053974
sub edx, 4
jb 0x1001dba1
lea ecx, [ecx]
mov eax, dword [ecx]
cmp eax, dword [esi]
jne 0x1001dba6
add ecx, 4
add esi, 4
sub edx, 4
jae 0x1001db90
cmp edx, 0xfffffffc
je 0x1001dbda
mov al, byte [ecx]
cmp al, byte [esi]
jne 0x1001dbd3
cmp edx, 0xfffffffd
je 0x1001dbda
mov al, byte [ecx + 1]
cmp al, byte [esi + 1]
jne 0x1001dbd3
cmp edx, 0xfffffffe
je 0x1001dbda
mov al, byte [ecx + 2]
cmp al, byte [esi + 2]
jne 0x1001dbd3
cmp edx, 0xffffffff
je 0x1001dbda
mov al, byte [ecx + 3]
cmp al, byte [esi + 3]
je 0x1001dbda
sbb eax, eax
or eax, 1
jmp 0x1001dbdc
xor eax, eax
test eax, eax
jne 0x1001dbf4
cmp ebx, 1
jae 0x1001dbea
or eax, 0xffffffff
jmp 0x1001dbf2
xor eax, eax
cmp ebx, 1
setne al
test eax, eax
mov esi, dword [esp + 0x10]
sete al
test al, al
sete al
test al, al
je 0x1001dd24
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x10]
mov eax, 2
mov edx, 0x10059df8
cmovae ecx, esi
cmp ebx, eax
cmovb eax, ebx
push eax
call fcn.10003760
add esp, 4
test eax, eax
jne 0x1001dc44
cmp ebx, 2
jae 0x1001dc3a
or eax, 0xffffffff
jmp 0x1001dc42
xor eax, eax
cmp ebx, 2
setne al
test eax, eax
sete al
test al, al
sete al
test al, al
je 0x1001dd24
push dword [ebp + 0x10]
lea eax, [esp + 0xb4]
push eax
call sym.KwLib.dll_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____cdecl_KwLib::Dir::ConfirmDirectory_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__
lea ecx, [esp + 0xfc]
mov byte [esp + 0x21c], 9
push ecx
mov edx, eax
lea ecx, [esp + 0x50]
call fcn.10004d50
add esp, 0xc
push 0x10059c78
mov edx, eax
mov byte [esp + 0x218], 0xa
lea ecx, [esp + 0x9c]
call fcn.10004d50
add esp, 4
mov ecx, dword [ebp + 8]
push eax
mov byte [esp + 0x218], 0xb
call fcn.10003f80
cmp dword [esp + 0xac], 0x10
jb 0x1001dcc7
push dword [esp + 0x98]
call edi
add esp, 4
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0xac], 0xf
mov dword [esp + 0xa8], 0
mov byte [esp + 0x98], 0
jb 0x1001dcf5
push dword [esp + 0x44]
call edi
add esp, 4
cmp dword [esp + 0xc4], 0x10
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
jb 0x1001dd20
push dword [esp + 0xb0]
call edi
add esp, 4
mov esi, dword [esp + 0x10]
mov byte [esp + 0x214], 3
cmp dword [esp + 0x24], 0x10
jb 0x1001dd39
push esi
call edi
add esp, 4
mov ebx, dword [esp + 0x5c]
mov esi, dword [esp + 0xc]
lea eax, [esp + 0xc8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1001d8e1
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, 1
jmp 0x1001dd68
xor esi, esi
cmp dword [esp + 0x7c], 0x10
jb 0x1001dd78
push dword [esp + 0x68]
call edi
add esp, 4
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
test ebx, ebx
je 0x1001dda1
push dword [esp + 0x60]
push ebx
call fcn.10004580
push ebx
call edi
add esp, 4
mov ecx, dword [esp + 0x20c]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret