Function at 0x40d0c0
Capabilities:
Get common file path
Query or enumerate registry value
Set current directory

Disassembly:
sub esp, 0x294
mov eax, dword [0x438e28]
xor eax, esp
mov dword [esp + 0x28c], eax
push ebx
push ebp
push esi
push edi
push 0x10000
mov esi, ecx
call fcn.0041835e
mov edi, eax
push 0x3c
xor ebp, ebp
lea eax, [esp + 0x20]
push ebp
push eax
mov dword [esp + 0x64], edi
call fcn.0041f9b0
mov ecx, dword [0x44d468]
mov ebx, 1
lea eax, [ecx + esi]
add esp, 0x10
mov dword [esp + 0x50], ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x34], 0x3b9ac9ff
cmp byte [eax], 0
je 0x40d7bc
mov al, byte [eax]
cmp al, 0x2f
je 0x40d131
cmp al, 0x2d
jne 0x40d821
add esi, ebx
mov al, byte [ecx + esi]
mov dword [esp + 0x14], esi
test al, al
je 0x40d151
mov edi, edi
cmp al, 0x20
jg 0x40d14d
add esi, ebx
mov al, byte [ecx + esi]
test al, al
jne 0x40d140
mov dword [esp + 0x14], esi
mov ebp, esi
xor edx, edx
cmp edx, 0xf
jge 0x40d165
mov al, byte [ecx + esi]
cmp al, 0x61
jl 0x40d165
cmp al, 0x7a
jle 0x40d178
mov al, byte [ecx + esi]
cmp al, 0x41
jl 0x40d170
cmp al, 0x5a
jle 0x40d178
cmp al, 0x30
jl 0x40d185
cmp al, 0x39
jg 0x40d185
mov byte [esp + edx + 0x28c], al
add edx, ebx
add esi, ebx
jmp 0x40d155
mov dword [esp + 0x14], esi
mov byte [esp + edx + 0x28c], 0
test edx, edx
je 0x40d821
cmp edx, 0xf
jge 0x40d821
lea ecx, [esp + 0x28c]
push 0x4347b0
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d1ff
lea edx, [esp + 0x14]
push edx
mov ebx, edi
call fcn.0040da80
mov eax, edi
add esp, 4
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d1d0
sub eax, edx
inc eax
push eax
call fcn.0041882e
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, edi
mov edx, eax
jmp 0x40d1f0
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40d1f0
jmp 0x40d78a
lea eax, [esp + 0x28c]
push str.path
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d25f
lea ecx, [esp + 0x14]
push ecx
mov ebx, edi
call fcn.0040da80
mov eax, edi
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d230
sub eax, edx
inc eax
push eax
call fcn.0041882e
add esp, 4
mov dword [esp + 0x1c], eax
mov ecx, edi
mov edx, eax
jmp 0x40d250
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40d250
jmp 0x40d78a
lea edx, [esp + 0x28c]
push str.filter
push edx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d2bf
lea eax, [esp + 0x14]
push eax
mov ebx, edi
call fcn.0040da80
mov eax, edi
add esp, 4
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d290
sub eax, edx
inc eax
push eax
call fcn.0041882e
add esp, 4
mov dword [esp + 0x20], eax
mov ecx, edi
mov edx, eax
jmp 0x40d2b0
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40d2b0
jmp 0x40d78a
lea ecx, [esp + 0x28c]
push str.sort
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d399
lea edx, [esp + 0x14]
push edx
mov ebx, edi
call fcn.0040da80
push 0x4347cc
push edi
call fcn.004264c7
add esp, 0xc
test eax, eax
jne 0x40d307
mov dword [esp + 0x28], 1
jmp 0x40d78a
push 0x4347d4
push edi
call fcn.004264c7
add esp, 8
test eax, eax
je 0x40d38c
push 0x4347d8
push edi
call fcn.004264c7
add esp, 8
test eax, eax
je 0x40d38c
push 0x4347e4
push edi
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d34a
mov dword [esp + 0x28], 3
jmp 0x40d78a
push str.date
push edi
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d369
mov dword [esp + 0x28], 4
jmp 0x40d78a
push str.datecr
push edi
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d78a
mov dword [esp + 0x28], 5
jmp 0x40d78a
mov dword [esp + 0x28], 2
jmp 0x40d78a
lea eax, [esp + 0x28c]
push str.sfpite
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d3bb
mov byte [esp + 0x24], bl
jmp 0x40d793
lea ecx, [esp + 0x28c]
push 0x434800
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d3dd
mov byte [esp + 0x25], bl
jmp 0x40d793
lea edx, [esp + 0x28c]
push 0x434804
push edx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d3ff
mov byte [esp + 0x2c], bl
jmp 0x40d793
lea eax, [esp + 0x28c]
push 0x434808
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d421
mov byte [esp + 0x2d], bl
jmp 0x40d793
lea ecx, [esp + 0x28c]
push 0x43480c
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d443
mov byte [esp + 0x2e], bl
jmp 0x40d793
lea edx, [esp + 0x28c]
push 0x434810
push edx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d465
mov byte [esp + 0x2f], bl
jmp 0x40d793
lea eax, [esp + 0x28c]
push 0x434814
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d487
mov byte [esp + 0x30], bl
jmp 0x40d793
lea ecx, [esp + 0x28c]
push 0x434818
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d4a9
mov byte [esp + 0x31], bl
jmp 0x40d793
lea edx, [esp + 0x28c]
push 0x43481c
push edx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d534
mov edi, dword [esp + 0x54]
lea ebx, [esp + 0x14]
call fcn.0040db30
mov dword [esp + 0x34], eax
test eax, eax
jns 0x40d78a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d4ec
push eax
call fcn.0041855e
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40d4fd
push eax
call fcn.0041855e
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40d50e
push eax
call fcn.0041855e
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40d51f
push eax
call fcn.0041855e
add esp, 4
push edi
push ebp
call fcn.0040dbc0
push edi
call fcn.00418524
add esp, 0xc
jmp 0x40da5d
lea eax, [esp + 0x28c]
push 0x434824
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d556
mov byte [esp + 0x38], bl
jmp 0x40d793
lea ecx, [esp + 0x28c]
push 0x434828
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d578
mov byte [esp + 0x39], bl
jmp 0x40d793
lea edx, [esp + 0x28c]
push 0x43482c
push edx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d59a
mov byte [esp + 0x3a], bl
jmp 0x40d793
lea eax, [esp + 0x28c]
push 0x434830
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d5bc
mov byte [esp + 0x3b], bl
jmp 0x40d793
lea ecx, [esp + 0x28c]
push 0x434834
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d5de
mov byte [esp + 0x3c], bl
jmp 0x40d793
lea edx, [esp + 0x28c]
push str.4dos
push edx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d600
mov byte [esp + 0x3d], bl
jmp 0x40d793
lea eax, [esp + 0x28c]
push 0x434840
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d622
mov byte [esp + 0x3e], bl
jmp 0x40d793
lea ecx, [esp + 0x28c]
push 0x434844
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d644
mov byte [esp + 0x3f], bl
jmp 0x40d793
lea edx, [esp + 0x28c]
push str.head
push edx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d666
mov byte [esp + 0x42], bl
jmp 0x40d793
lea eax, [esp + 0x28c]
push 0x434850
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d688
mov byte [esp + 0x40], bl
jmp 0x40d793
lea ecx, [esp + 0x28c]
push str.dmod
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d6aa
mov byte [esp + 0x41], bl
jmp 0x40d793
lea edx, [esp + 0x28c]
push 0x43485c
push edx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d6cc
mov byte [esp + 0x43], bl
jmp 0x40d793
lea eax, [esp + 0x28c]
push 0x434860
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d6ee
mov byte [esp + 0x44], bl
jmp 0x40d793
lea ecx, [esp + 0x28c]
push 0x434864
push ecx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d710
mov byte [esp + 0x45], bl
jmp 0x40d793
lea edx, [esp + 0x28c]
push 0x434868
push edx
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d72f
mov byte [esp + 0x46], bl
jmp 0x40d793
lea eax, [esp + 0x28c]
push str.root
push eax
call fcn.004264c7
add esp, 8
test eax, eax
jne 0x40d4db
lea ecx, [esp + 0x14]
push ecx
mov ebx, edi
call fcn.0040da80
mov eax, edi
add esp, 4
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40d760
sub eax, edx
inc eax
push eax
call fcn.0041882e
add esp, 4
mov dword [esp + 0x48], eax
mov ecx, edi
mov edx, eax
jmp 0x40d780
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x40d780
mov esi, dword [esp + 0x14]
mov ebx, 1
mov ecx, dword [0x44d468]
mov al, byte [ecx + esi]
test al, al
je 0x40d7ad
cmp al, 0x20
jg 0x40d7ad
add esi, ebx
mov al, byte [ecx + esi]
test al, al
jne 0x40d7a0
cmp byte [ecx + esi], 0
lea eax, [ecx + esi]
jne 0x40d123
xor ebp, ebp
cmp dword [esp + 0x18], ebp
je 0x40d9ec
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40d9ec
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x40d87a
mov edx, dword [0x44d46c]
push 0x104
push edi
push 0x75
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
push 0x433250
push edi
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x18]
push eax
call fcn.0041855e
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0041855e
add esp, 8
jmp 0x40da32
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40d832
push eax
call fcn.0041855e
add esp, 4
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40d843
push eax
call fcn.0041855e
add esp, 4
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40d854
push eax
call fcn.0041855e
add esp, 4
mov eax, dword [esp + 0x48]
test eax, eax
je 0x40d865
push eax
call fcn.0041855e
add esp, 4
push edi
push esi
call fcn.0040dbc0
push edi
call fcn.00418524
add esp, 0xc
jmp 0x40da5d
mov edx, dword [esp + 0x1c]
push edx
call fcn.0041855e
push 0x104
call fcn.0041882e
mov dword [esp + 0x24], eax
add esp, 8
mov byte [eax], 0
mov eax, dword [esp + 0x1c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp dword [esp + 0x20], ebp
jne 0x40d8c2
push 0x14
call fcn.0041882e
mov dword [esp + 0x24], eax
add esp, 4
mov dword [eax], 0x2a2e2a
lea ecx, [esp + 0x58]
push ecx
push str.SoftwareStratopoint_SoftwarePrintFolders
push 0x80000001
mov byte [0x43bc70], 0
mov dword [0x43bc74], 0xffffff
mov byte [0x43bc78], 0
mov dword [0x43bc7c], 0xffff
mov byte [0x43bc80], 0
mov dword [0x43bc84], 0xffff00
mov byte [0x43bc88], 0
mov dword [0x43bc8c], ebp
mov word [0x43bc90], 1
mov dword [0x43bc94], 0xff0000
mov byte [0x43bc98], 0
mov dword [0x43bc9c], ebp
mov byte [0x43bca0], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x40d98f
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x64]
push ecx
push ebp
push 0x434874
push edx
mov dword [esp + 0x2c], 0x228
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d984
cmp dword [esp + 0x5c], 3
jne 0x40d984
mov ecx, 0x8a
lea esi, [esp + 0x60]
mov edi, 0x43bc70
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x58]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x7f02
push 0
call dword [sym.imp.USER32.dll_LoadCursorA]
mov esi, dword [sym.imp.USER32.dll_SetCursor]
push eax
call esi
lea ebx, [esp + 0x18]
mov edi, eax
call fcn.004080d0
push edi
call esi
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0041855e
mov edx, dword [esp + 0x20]
push edx
call fcn.0041855e
mov eax, dword [esp + 0x28]
push eax
call fcn.0041855e
mov eax, dword [esp + 0x54]
add esp, 0xc
test eax, eax
je 0x40d9e5
push eax
call fcn.0041855e
add esp, 4
mov ecx, dword [esp + 0x54]
push ecx
jmp 0x40da55
mov edx, dword [0x44d46c]
push 0x104
push edi
push 0x74
push edx
call dword [sym.imp.USER32.dll_LoadStringA]
push 0x10
push 0x433250
push edi
push ebp
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40da21
push eax
call fcn.0041855e
add esp, 4
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x40da32
push eax
call fcn.0041855e
add esp, 4
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x40da43
push eax
call fcn.0041855e
add esp, 4
mov eax, dword [esp + 0x48]
cmp eax, ebp
je 0x40da54
push eax
call fcn.0041855e
add esp, 4
push edi
call fcn.00418524
add esp, 4
mov ecx, dword [esp + 0x29c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004181f3
add esp, 0x294
ret