Function at 0x100038f0
Capabilities:
Enumerate files on windows
Read .ini file
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100137f9
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x1086c
call fcn.10012a80
mov eax, dword [0x1001dfd0]
xor eax, esp
mov dword [esp + 0x10868], eax
push ebx
push esi
push edi
mov eax, dword [0x1001dfd0]
xor eax, esp
push eax
lea eax, [esp + 0x10880]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x18]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov dword [esp + 0x18], esi
call fcn.100034f0
mov eax, dword [esi + 0x18]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x18]
xor ebx, ebx
mov dword [esi + 0x1c], ebx
mov dword [eax], eax
mov eax, dword [esi + 0x18]
mov dword [eax + 8], eax
call dword [sym.imp.hpqddcmn.dll_GetIniDirectory]
xor edx, edx
mov ecx, eax
mov dword [esp + 0x220], 7
mov dword [esp + 0x21c], ebx
mov word [esp + 0x20c], dx
lea edi, [ecx + 2]
mov dx, word [ecx]
add ecx, 2
cmp dx, bx
jne 0x10003987
sub ecx, edi
sar ecx, 1
push ecx
push eax
lea ecx, [esp + 0x210]
call fcn.100022a0
push 0x10015ae0
lea eax, [esp + 0x20c]
push eax
lea ecx, [esp + 0x98]
push ecx
mov dword [esp + 0x10894], ebx
call fcn.10003160
add esp, 0xc
cmp dword [eax + 0x18], 8
jb 0x100039d3
mov eax, dword [eax + 4]
jmp 0x100039d6
add eax, 4
lea edx, [esp + 0x224]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x3c], edi
cmp eax, 8
jb 0x10003a0e
inc eax
push eax
mov eax, dword [esp + 0x98]
push eax
lea ecx, [esp + 0x98]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
xor ecx, ecx
mov dword [esp + 0xa8], 7
mov dword [esp + 0xa4], ebx
mov word [esp + 0x94], cx
cmp edi, 0xffffffff
je 0x10004170
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
lea esp, [esp]
test byte [esp + 0x224], 0x10
jne 0x1000414a
push 0x10015adc
lea edx, [esp + 0x20c]
push edx
lea eax, [esp + 0x7c]
push eax
call fcn.10003160
lea ecx, [esp + 0x25c]
push ecx
push eax
lea edx, [esp + 0x200]
push edx
mov byte [esp + 0x108a0], 1
call fcn.10003160
add esp, 0x18
mov eax, dword [esp + 0x8c]
mov byte [esp + 0x10888], 3
cmp eax, 8
jb 0x10003aab
inc eax
push eax
mov eax, dword [esp + 0x7c]
push eax
lea ecx, [esp + 0x7c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
mov eax, dword [esp + 0x1f0]
xor ecx, ecx
cmp dword [esp + 0x204], 8
mov dword [esp + 0x8c], 7
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
jae 0x10003adc
lea eax, [esp + 0x1f0]
push eax
push str.Reading___s__...
push 1
call dword [sym.imp.hpqddcmn.dll_LogMessage]
mov eax, dword [esp + 0x1fc]
add esp, 0xc
cmp dword [esp + 0x204], 8
jae 0x10003b05
lea eax, [esp + 0x1f0]
push eax
push ebx
push str.Version
push str.DeviceDiscovery
call edi
cmp eax, 2
je 0x10003b59
mov eax, dword [esp + 0x204]
mov byte [esp + 0x10888], 0
cmp eax, 8
jb 0x10003b43
mov edx, dword [esp + 0x1f0]
inc eax
push eax
push edx
lea ecx, [esp + 0x1f4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
xor eax, eax
mov dword [esp + 0x200], ebx
mov word [esp + 0x1f0], ax
jmp 0x1000413f
cmp dword [esp + 0x204], 8
mov eax, dword [esp + 0x1f0]
jae 0x10003b71
lea eax, [esp + 0x1f0]
push eax
push ebx
push str.Count
push str.ProductClassNames
call edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x18], ebx
cmp eax, ebx
jbe 0x100040f3
nop
xor ecx, ecx
push 0x1fe
push ecx
lea edx, [esp + 0x67e]
push edx
mov word [esp + 0x680], cx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x24]
push eax
push 0x10015a50
lea ecx, [esp + 0x688]
push 0x100
push ecx
call dword [sym.imp.MSVCR90.dll_swprintf_s]
xor edx, edx
push 0x1fe
push edx
lea eax, [esp + 0x49a]
push eax
mov word [esp + 0x49c], dx
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x218]
add esp, 0x28
cmp dword [esp + 0x204], 8
jae 0x10003c02
lea eax, [esp + 0x1f0]
push eax
push 0x100
lea ecx, [esp + 0x47c]
push ecx
push 0x10015488
lea edx, [esp + 0x684]
push edx
push str.ProductClassNames
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push 0x10015a48
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
lea eax, [esp + 0x474]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003c45
sub eax, edx
sar eax, 1
je 0x100040e0
xor ecx, ecx
lea eax, [esp + 0x474]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
mov word [esp + 0x20], cx
lea edx, [eax + 2]
jmp 0x10003c80
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003c80
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x478]
push edx
lea ecx, [esp + 0x24]
call fcn.100022a0
mov edi, dword [esp + 0x14]
mov eax, dword [edi]
mov ebx, dword [edi + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xb8]
push edx
mov ecx, edi
mov byte [esp + 0x10890], 4
mov dword [esp + 0x6c], eax
call fcn.100024b0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x10003cd8
cmp eax, dword [esp + 0x64]
je 0x10003cde
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [esi + 4], ebx
mov eax, dword [esp + 0x34]
mov esi, 8
sete bl
mov byte [esp + 0x10888], 3
cmp eax, esi
jb 0x10003d0a
inc eax
push eax
mov eax, dword [esp + 0x24]
push eax
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
test bl, bl
je 0x10003e22
lea ecx, [esp + 0x474]
push ecx
push str.Found___s_.
push 1
call dword [sym.imp.hpqddcmn.dll_LogMessage]
add esp, 0xc
xor edx, edx
lea eax, [esp + 0x474]
mov word [esp + 0x20], dx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea edx, [eax + 2]
jmp 0x10003d50
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003d50
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x478]
push eax
lea ecx, [esp + 0x24]
call fcn.100022a0
mov eax, dword [esp + 0x1f0]
mov byte [esp + 0x10888], 5
cmp dword [esp + 0x204], esi
jae 0x10003d90
lea eax, [esp + 0x1f0]
push eax
lea ecx, [esp + 0x478]
push ecx
lea ecx, [esp + 0x114]
call fcn.10002770
push eax
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x1a0]
mov byte [esp + 0x10890], 6
call fcn.10002680
push eax
lea eax, [esp + 0xcc]
push eax
mov ecx, edi
mov byte [esp + 0x10890], 7
call fcn.10003720
lea ecx, [esp + 0x198]
mov byte [esp + 0x10888], 6
call fcn.10002130
lea ecx, [esp + 0x10c]
mov byte [esp + 0x10888], 5
call fcn.10002080
mov eax, dword [esp + 0x34]
mov byte [esp + 0x10888], 3
cmp eax, esi
jb 0x10003e3d
mov ecx, dword [esp + 0x20]
inc eax
push eax
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
jmp 0x10003e3d
lea edx, [esp + 0x474]
push edx
push 0x100159e8
push 0x400
call dword [sym.imp.hpqddcmn.dll_LogMessage]
add esp, 0xc
xor eax, eax
push 0xfffe
push eax
lea ecx, [esp + 0x87e]
push ecx
mov word [esp + 0x880], ax
call sub.MSVCR90.dll_memset
mov eax, dword [esp + 0x1fc]
add esp, 0xc
cmp dword [esp + 0x204], esi
jae 0x10003e74
lea eax, [esp + 0x1f0]
push 0x100159e4
push eax
push 0x8000
lea edx, [esp + 0x880]
push edx
push 0x10015488
lea eax, [esp + 0x488]
push str.Aliases
push eax
call dword [sym.imp.hpqddcmn.dll_GetPrivateProfileMultiString]
add esp, 0x1c
cmp word [esp + 0x874], 0
lea esi, [esp + 0x874]
je 0x100040e0
mov eax, esi
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003ec0
sub eax, edx
sar eax, 1
push 0x10015a48
lea ecx, [esi + eax*2 + 2]
push esi
mov dword [esp + 0x40], ecx
call dword [sym.imp.SHLWAPI.dll_StrTrimW]
mov eax, esi
lea edx, [eax + 2]
jmp 0x10003ef0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003ef0
sub eax, edx
sar eax, 1
je 0x100040d2
xor edx, edx
mov eax, esi
mov word [esp + 0x20], dx
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10003f21
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x24]
call fcn.100022a0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov ebx, dword [ecx + 0x18]
lea edx, [esp + 0x1c]
mov dword [esp + 0x6c], eax
push edx
lea eax, [esp + 0xb0]
push eax
mov byte [esp + 0x10890], 8
call fcn.100024b0
mov edi, eax
mov eax, dword [edi]
test eax, eax
je 0x10003f70
cmp eax, dword [esp + 0x6c]
je 0x10003f76
call dword [sym.imp.MSVCR90.dll__invalid_parameter_noinfo]
cmp dword [edi + 4], ebx
mov eax, dword [esp + 0x34]
sete bl
mov byte [esp + 0x10888], 3
cmp eax, 8
jb 0x10003f9e
mov ecx, dword [esp + 0x20]
inc eax
push eax
push ecx
lea ecx, [esp + 0x24]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
test bl, bl
je 0x100040be
lea edx, [esp + 0x474]
push edx
push esi
push str.Found_alias___s__for___s_.
push 1
call dword [sym.imp.hpqddcmn.dll_LogMessage]
xor edi, edi
add esp, 0x10
xor eax, eax
mov word [esp + 0x48], ax
mov ebx, 7
mov eax, esi
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10003fe0
sub eax, edx
sar eax, 1
push eax
push esi
lea ecx, [esp + 0x4c]
call fcn.100022a0
cmp dword [esp + 0x204], 8
mov eax, dword [esp + 0x1f0]
mov byte [esp + 0x10888], 9
jae 0x1000401a
lea eax, [esp + 0x1f0]
push eax
lea ecx, [esp + 0x478]
push ecx
lea ecx, [esp + 0xdc]
call fcn.10002770
push eax
lea edx, [esp + 0x48]
push edx
lea ecx, [esp + 0x14c]
mov byte [esp + 0x10890], 0xa
call fcn.10002680
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0xc0]
push eax
mov byte [esp + 0x10890], 0xb
call fcn.10003720
lea ecx, [esp + 0x144]
mov byte [esp + 0x10888], 0xa
call fcn.10002130
lea ecx, [esp + 0xd4]
mov byte [esp + 0x10888], 9
call fcn.10002080
mov eax, dword [esp + 0x5c]
mov byte [esp + 0x10888], 3
cmp eax, 8
jb 0x100040ad
mov ecx, dword [esp + 0x48]
inc eax
push eax
push ecx
lea ecx, [esp + 0x4c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
xor edx, edx
mov dword [esp + 0x5c], ebx
mov dword [esp + 0x58], edi
mov word [esp + 0x48], dx
jmp 0x100040d2
push esi
push str.Found_multiple_occurrences_of_alias___s_.
push 0x400
call dword [sym.imp.hpqddcmn.dll_LogMessage]
add esp, 0xc
mov esi, dword [esp + 0x38]
cmp word [esi], 0
jne 0x10003eb8
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x40]
jb 0x10003b90
mov eax, dword [esp + 0x204]
mov byte [esp + 0x10888], 0
cmp eax, 8
jb 0x1000411e
inc eax
push eax
mov eax, dword [esp + 0x1f4]
push eax
lea ecx, [esp + 0x1f4]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 0x200], 0
mov word [esp + 0x1f0], cx
xor ebx, ebx
mov dword [esp + 0x204], 7
mov eax, dword [esp + 0x3c]
lea edx, [esp + 0x224]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10003a40
mov ecx, dword [esp + 0x3c]
push ecx
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [esi + 0x1c], ebx
jne 0x10004188
push str.No_supported_product_class_found.
push 0x400
call dword [sym.imp.hpqddcmn.dll_LogMessage]
add esp, 8
mov eax, dword [esp + 0x220]
mov dword [esp + 0x10888], 0xffffffff
cmp eax, 8
jb 0x100041b6
mov edx, dword [esp + 0x20c]
inc eax
push eax
push edx
lea ecx, [esp + 0x210]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::allocator_wchar_t_::deallocate_wchar_t___unsigned_int_]
mov eax, 1
mov ecx, dword [esp + 0x10880]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x10868]
xor ecx, esp
call fcn.10012a16
mov esp, ebp
pop ebp
ret