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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov dl, byte [0x4182fc]
push ebx
push esi
push edi
push 0x40
xor eax, eax
pop ecx
lea edi, [ebp - 0x2f7]
mov byte [ebp - 0x2f8], dl
push 0x3f
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x1f3]
mov byte [ebp - 0x1f4], dl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x1f
xor eax, eax
pop ecx
lea edi, [ebp - 0xb3]
mov byte [ebp - 0xb4], dl
push 0xf
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0xf3]
mov byte [ebp - 0xf4], dl
rep stosd dword es:[edi], eax
mov esi, dword [ebp + 0x18]
push 7
stosw word es:[edi], ax
stosb byte es:[edi], al
pop ecx
xor eax, eax
lea edi, [ebp - 0x33]
mov byte [ebp - 0x34], dl
rep stosd dword es:[edi], eax
push esi
or dword [ebp - 4], 0xffffffff
push dword [ebp + 0x14]
or dword [ebp - 8], 0xffffffff
stosw word es:[edi], ax
push dword [ebp + 0x10]
mov ebx, 0x4182fc
stosb byte es:[edi], al
push dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
push dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [esi]
push str.GetDiskBlobAndDecrypt._1.__08X.__s.__s.__08X.__08X.
push ebx
push 3
mov dword [ebp + 0x18], eax
call fcn.00407279
add esp, 0x20
cmp dword [ebp + 0x10], 0
mov edi, 0x418878
jne 0x4039a0
lea eax, [ebp - 0x2f8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
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 0x4038c9
push 0x596
call fcn.00406e92
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.0040b4f0
push 0xffffffffffffffff
push 0
push 0x8fe
call fcn.00406e92
add esp, 0x20
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.0040b470
pop ecx
lea eax, [ebp + eax - 0xf3]
push eax
call fcn.0040b500
lea eax, [ebp - 0x34]
push 0x4142b0
push eax
call fcn.0040b4f0
lea eax, [ebp - 0x34]
push 0x4142ac
push eax
call fcn.0040b500
add esp, 0x18
lea eax, [ebp - 0x34]
push 0x4142a8
push eax
call fcn.0040b470
pop ecx
lea eax, [ebp + eax - 0x33]
push eax
call fcn.0040b500
pop ecx
pop ecx
jmp 0x4038f1
push 0x8fe
call fcn.00406e92
push eax
lea eax, [ebp - 0xf4]
push eax
call fcn.0040b4f0
lea eax, [ebp - 0x34]
push 0x4142a8
push eax
call fcn.0040b4f0
add esp, 0x1c
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x1f4]
push eax
push dword [ebp + 0xc]
push str.GetDiskBlobAndDecrypt._2.__s.__s.__s.__s.
push ebx
push 3
call fcn.00407279
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0xf4]
push eax
lea eax, [ebp - 0x1f4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040afef
add esp, 0x34
test eax, eax
jne 0x40396d
lea eax, [ebp - 0x1f4]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.GetDiskBlobAndDecrypt._3.__08X.__s.
push ebx
push 2
call fcn.00407279
add esp, 0x14
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push 0
jmp 0x403ed9
lea eax, [ebp - 0x2f8]
push eax
push edi
push str.GetDiskBlobAndDecrypt._4.__s.__s.
push ebx
push 3
call fcn.00407279
add esp, 0x14
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x2f8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
jmp 0x4039b1
push dword [ebp + 0x10]
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040b4f0
pop ecx
pop ecx
lea eax, [ebp - 0x2f8]
push edi
push eax
lea eax, [ebp - 0x1f4]
push eax
push str.GetDiskBlobAndDecrypt._5.__s.__s.__s.
push ebx
push 3
call fcn.00407279
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
add esp, 0x18
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x4039e1
xor eax, eax
jmp 0x4039e4
movsx eax, byte [ecx]
push eax
push ecx
push dword [ebp - 0x10]
push str.GetDiskBlobAndDecrypt._6.__08X.__08X.__08X.
push ebx
push 3
call fcn.00407279
mov eax, dword [ebp + 0x14]
add esp, 0x18
test eax, eax
je 0x403a16
cmp byte [eax], 0
je 0x403a16
push eax
lea eax, [ebp - 0xb4]
push eax
call fcn.0040b4f0
pop ecx
pop ecx
jmp 0x403a40
push dword [ebp + 8]
push str.GetDiskBlobAndDecrypt._7.__08X.
push ebx
push 3
call fcn.00407279
lea eax, [ebp - 0xb4]
push eax
push dword [ebp + 8]
call fcn.0040253d
add esp, 0x18
test eax, eax
je 0x403c60
lea eax, [ebp - 0xb4]
push eax
call fcn.0040b470
pop ecx
push eax
push str.GetDiskBlobAndDecrypt._9.__08X.
push ebx
push 3
call fcn.00407279
lea eax, [ebp - 0x1f4]
push esi
push eax
call fcn.00402cba
add esp, 0x18
test eax, eax
je 0x403aaf
lea eax, [ebp - 0xb4]
push 1
push eax
push esi
call fcn.004035d5
add esp, 0xc
test eax, eax
je 0x403aaf
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 2
push esi
mov dword [ebp - 8], 4
call dword [0x419c5c]
test eax, eax
je 0x403aaf
cmp dword [ebp - 4], 0x19
jbe 0x403cf9
push dword [ebp - 8]
push dword [ebp - 4]
push dword [esi]
push dword [esi + 4]
call edi
push eax
push str.GetDiskBlobAndDecrypt._10.__08X.__08X.__08X.__08X.__08X.
push ebx
push 3
call fcn.00407279
mov eax, dword [ebp + 0x18]
add esp, 0x20
mov dword [esi], eax
call edi
cmp eax, 0x1780
je 0x403c7f
lea eax, [ebp - 0x1f4]
push esi
push eax
call fcn.00402cba
pop ecx
test eax, eax
pop ecx
je 0x403b32
lea eax, [ebp - 0xb4]
push 0
push eax
push esi
call fcn.004033f1
add esp, 0xc
test eax, eax
je 0x403b32
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 2
push esi
mov dword [ebp - 8], 4
call dword [0x419c5c]
test eax, eax
je 0x403b32
cmp dword [ebp - 4], 0x19
jbe 0x403ca6
push dword [ebp - 8]
push dword [ebp - 4]
push dword [esi]
push dword [esi + 4]
call edi
push eax
push str.GetDiskBlobAndDecrypt._11.__08X.__08X.__08X.__08X.__08X.
push ebx
push 3
call fcn.00407279
mov eax, dword [ebp + 0x18]
add esp, 0x20
mov dword [esi], eax
call edi
cmp eax, 0x1780
je 0x403c7f
lea eax, [ebp - 0x1f4]
push esi
push eax
call fcn.00402cba
pop ecx
test eax, eax
pop ecx
je 0x403bb5
lea eax, [ebp - 0xb4]
push 1
push eax
push esi
call fcn.004033f1
add esp, 0xc
test eax, eax
je 0x403bb5
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 2
push esi
mov dword [ebp - 8], 4
call dword [0x419c5c]
test eax, eax
je 0x403bb5
cmp dword [ebp - 4], 0x19
jbe 0x403ca6
call edi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
push dword [esi]
push dword [esi + 4]
call edi
push eax
push str.GetDiskBlobAndDecrypt._12.__08X.__08X.__08X.__08X.__08X.
push ebx
push 3
call fcn.00407279
mov eax, dword [ebp + 0x18]
push 0x80
mov dword [esi], eax
lea eax, [ebp - 0xb4]
push 0
push eax
call fcn.0040b6c0
push dword [esi]
push 0
push dword [esi + 4]
call fcn.0040b6c0
add esp, 0x38
push dword [ebp - 0x10]
call edi
push eax
push str.GetDiskBlobAndDecrypt._13.__08X.__08X.
push ebx
push 3
call fcn.00407279
add esp, 0x14
cmp dword [ebp - 0xc], 0x80090019
je 0x403c28
cmp dword [ebp - 0xc], 0x80090003
jne 0x403ec6
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]
and dword [ebp - 0xc], 0
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 2
jae 0x403ed6
jmp 0x4039d6
lea eax, [ebp - 0xb4]
push eax
call edi
push eax
push str.GetDiskBlobAndDecrypt._8.__08X.__08X.
push ebx
push 2
call fcn.00407279
add esp, 0x14
jmp 0x403ed6
push 0x80
lea eax, [ebp - 0xb4]
push 0
push eax
call fcn.0040b6c0
push dword [esi]
push 0
push dword [esi + 4]
call fcn.0040b6c0
add esp, 0x18
jmp 0x403edf
push dword [esi]
push dword [esi + 4]
call edi
push eax
push str.GetDiskBlobAndDecrypt._14.__08X.__08X.__08X.
push ebx
push 3
call fcn.00407279
add esp, 0x18
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 4]
push eax
push 7
push esi
call dword [0x419c44]
test eax, eax
jne 0x403cf9
call edi
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
push dword [ebp - 4]
call edi
push eax
push str.GetDiskBlobAndDecrypt._15.__08X.__08X.__08X.
jmp 0x403e9a
push dword [esi]
push dword [esi + 4]
push dword [ebp - 4]
push str.GetDiskBlobAndDecrypt._16.__08X.__08X.__08X.
push ebx
push 3
call fcn.00407279
lea eax, [ebp - 0x1f4]
push eax
call fcn.00401693
add esp, 0x1c
test eax, eax
jne 0x403d83
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x100
push eax
lea eax, [ebp - 0x1f4]
push eax
push 1
push esi
call dword [0x419c5c]
test eax, eax
jne 0x403d83
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1f4]
push eax
call edi
push eax
push str.GetDiskBlobAndDecrypt._17.__08X.__s.
push ebx
push 1
call fcn.00407279
push 0x80
lea eax, [ebp - 0xb4]
push 0
push eax
call fcn.0040b6c0
push dword [esi]
push 0
push dword [esi + 4]
call fcn.0040b6c0
add esp, 0x2c
jmp 0x403ed6
lea eax, [ebp - 0x2f8]
push 0x104
push eax
lea eax, [ebp - 0x1f4]
push eax
call fcn.00401277
add esp, 0xc
test eax, eax
je 0x403e7f
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040b4f0
pop ecx
test eax, eax
pop ecx
je 0x403e7f
cmp dword [ebp - 0x14], 0
jne 0x403dde
lea eax, [ebp - 0x1f4]
push eax
push dword [ebp + 8]
call fcn.00403646
pop ecx
test eax, eax
pop ecx
je 0x403e01
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push 6
push esi
mov dword [ebp - 4], 1
call dword [0x419c44]
test eax, eax
je 0x403e66
lea eax, [ebp - 0x1f4]
push eax
call fcn.0040b470
inc eax
pop ecx
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x1f4]
push eax
push 1
push esi
call dword [0x419c44]
test eax, eax
je 0x403e66
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x403e45
cmp byte [eax], 0
jne 0x403e45
lea ecx, [ebp - 0xb4]
push ecx
push eax
call fcn.0040b4f0
pop ecx
pop ecx
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
push eax
push str.GetDiskBlobAndDecrypt._20.__08X.
push ebx
push 3
call fcn.00407279
add esp, 0x10
push 1
pop eax
jmp 0x403ee1
call edi
push dword [ebp - 4]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x1f4]
push eax
call edi
push eax
push str.GetDiskBlobAndDecrypt._19.__08X.__s.__08X.
jmp 0x403e9a
call edi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x2f8]
push eax
lea eax, [ebp - 0x1f4]
push eax
call edi
push eax
push str.GetDiskBlobAndDecrypt._18.__08X.__s.__s.
push ebx
push 1
call fcn.00407279
push 0x80
lea eax, [ebp - 0xb4]
push 0
push eax
call fcn.0040b6c0
push dword [esi]
push 0
push dword [esi + 4]
call fcn.0040b6c0
add esp, 0x30
jmp 0x403ed6
cmp dword [ebp - 0xc], 0xea
jne 0x403ed6
mov dword [ebp - 0xc], 0x3ee
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret