Function at 0x40594e
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xafc
mov dl, byte [0x4182fc]
push ebx
push esi
push edi
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0xa7]
mov byte [ebp - 0xa8], dl
push 0x40
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0xafc]
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
lea edi, [ebp - 0x32b]
mov byte [ebp - 0x32c], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x3f
xor eax, eax
pop ecx
lea edi, [ebp - 0x227]
mov byte [ebp - 0x228], dl
push 0x1f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x127]
mov byte [ebp - 0x128], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0xf
xor eax, eax
pop ecx
lea edi, [ebp - 0x67]
mov byte [ebp - 0x68], dl
push 7
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x27]
mov byte [ebp - 0x28], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x32c]
mov dword [ebp - 8], 0x7d0
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0xa8]
push eax
lea eax, [ebp - 0x32c]
push eax
call edi
push eax
mov esi, 0x4182fc
push str.RestoreKeyBlob._1.__08X.__s.__s.
push esi
push 3
call fcn.00407279
add esp, 0x18
push 0x4142b4
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x68]
push 0x40
push eax
push 0x8fe
call fcn.00406e92
mov ebx, 0x4142a8
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.0040b4f0
lea eax, [ebp - 0xa8]
push 0x40
push eax
push 0x59b
call fcn.00406e92
lea eax, [ebp - 0x28]
push 0
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 8]
call fcn.0040afef
add esp, 0x38
test eax, eax
jne 0x405aa8
call edi
mov edi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x228]
push eax
push edi
push str.RestoreKeyBlob._2.__08X.__s.__s.__s.
jmp 0x405c43
lea eax, [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea eax, [ebp - 0x228]
push eax
push str.RestoreKeyBlob._3.__s.
push esi
push 3
call fcn.00407279
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00402cba
add esp, 0x18
test eax, eax
je 0x405d45
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.0040253d
pop ecx
test eax, eax
pop ecx
je 0x405d45
lea eax, [ebp - 0x128]
push 1
push eax
lea eax, [ebp - 8]
push eax
call fcn.004035d5
add esp, 0xc
test eax, eax
je 0x405d45
push 0x6f
push 0
push 0x6b
push 0
push 0x485
push dword [0x419934]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
push 0x482
push dword [0x419934]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
call dword [sym.imp.USER32.dll_IsDlgButtonChecked]
cmp eax, 1
push 0xffffffffffffffff
push 0
jne 0x405bc7
push 0x596
call fcn.00406e92
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040b4f0
push 0xffffffffffffffff
push 0
push 0x8fe
call fcn.00406e92
add esp, 0x20
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040b470
pop ecx
lea eax, [ebp + eax - 0x67]
push eax
call fcn.0040b500
lea eax, [ebp - 0x28]
push 0x4142b0
push eax
call fcn.0040b4f0
lea eax, [ebp - 0x28]
push 0x4142ac
push eax
call fcn.0040b500
add esp, 0x18
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0040b470
pop ecx
lea eax, [ebp + eax - 0x27]
push eax
call fcn.0040b500
pop ecx
pop ecx
jmp 0x405be8
push 0x8fe
call fcn.00406e92
push eax
lea eax, [ebp - 0x68]
push eax
call fcn.0040b4f0
lea eax, [ebp - 0x28]
push ebx
push eax
call fcn.0040b4f0
add esp, 0x1c
and byte [ebp - 0x228], 0
lea eax, [ebp - 0xa8]
push 0x40
push eax
push 0x589
call fcn.00406e92
xor ebx, ebx
lea eax, [ebp - 0x28]
push ebx
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0xa8]
push eax
push dword [ebp + 8]
call fcn.0040b0bd
add esp, 0x24
test eax, eax
jne 0x405c5c
call edi
mov edi, eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x228]
push eax
push edi
push str.RestoreKeyBlob._5.__08X.__s.__s.__s.
push esi
push 3
call fcn.00407279
add esp, 0x1c
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
push 0x80
lea eax, [ebp - 0x128]
push ebx
push eax
call fcn.0040b6c0
lea eax, [ebp - 0x128]
push eax
push dword [ebp + 8]
call fcn.004015a6
add esp, 0x14
test eax, eax
jne 0x405ca2
call edi
mov edi, eax
lea eax, [ebp - 0x128]
push eax
push edi
push str.RestoreKeyBlob._6.__08X.__08X.
push esi
push 3
call fcn.00407279
add esp, 0x14
jmp 0x405c4e
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 8]
push eax
call fcn.0040355e
pop ecx
test eax, eax
pop ecx
je 0x405d2b
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00403112
pop ecx
test eax, eax
pop ecx
jne 0x405ce4
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x228]
push eax
call fcn.00402f99
pop ecx
test eax, eax
pop ecx
je 0x405d2b
lea eax, [ebp - 0x228]
push eax
push str.RestoreKeyBlob._8.__s.
push esi
push 3
call fcn.00407279
add esp, 0x10
push 0x40
push 0x414144
push 0xffffffffffffffff
push ebx
push 0x979
call fcn.00406e92
add esp, 0xc
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
push 1
pop eax
jmp 0x405c57
call edi
mov edi, eax
push edi
push str.RestoreKeyBlob._7.__08X.
push esi
push 1
call fcn.00407279
add esp, 0x10
jmp 0x405c4e
call edi
mov edi, eax
push edi
push str.RestoreKeyBlob._4.__08X.
push esi
push 1
call fcn.00407279
add esp, 0x10
cmp edi, 0x1771
jne 0x405d8b
push 0x30
push 0x414144
push 0xffffffffffffffff
push 0
push 0x9c7
call fcn.00406e92
add esp, 0xc
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
jmp 0x405c4f
cmp edi, 0xea
jne 0x405c4e
push 0x3ee
jmp 0x405c4f