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

Disassembly:
mov eax, 0x1fa8
call fcn.00405340
mov eax, dword [0x4140d0]
xor eax, esp
mov dword [esp + 0x1fa4], eax
mov eax, dword [esp + 0x1fac]
push esi
mov esi, dword [esp + 0x1fb8]
push 0x208
mov dword [0x41503c], eax
lea eax, [esp + 0xb7c]
push 0
push eax
mov dword [0x415034], 0
call fcn.00404dd0
mov eax, dword [0x415088]
lea edx, [esp + 0xb84]
add esp, 0xc
sub edx, eax
jmp 0x403990
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x403990
push 0x208
lea ecx, [esp + 0x1194]
push 0
push ecx
call fcn.00404dd0
push 0x208
lea edx, [esp + 0xf98]
push 0
push edx
call fcn.00404dd0
add esp, 0x18
lea ecx, [esp + 8]
call fcn.00401890
lea ecx, [esp + 8]
call fcn.00401960
test eax, eax
jne 0x403a83
push 0x208
push eax
lea eax, [esp + 0x360]
push eax
call fcn.00404dd0
push 0x208
lea ecx, [esp + 0x980]
push 0
push ecx
call fcn.00404dd0
mov eax, dword [0x41503c]
mov esi, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 0x18
push 0x104
lea edx, [esp + 0x974]
push edx
push 0x12
push eax
call esi
mov edx, dword [0x41503c]
push 0x104
lea ecx, [esp + 0x35c]
push ecx
push 0xa
push edx
call esi
push 0x30
lea eax, [esp + 0x35c]
push eax
lea ecx, [esp + 0x978]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
lea ecx, [esp + 8]
call fcn.00401910
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1fa4]
xor ecx, esp
call fcn.00404dbf
add esp, 0x1fa8
ret 0x10
push ebx
push ebp
push edi
lea edx, [esp + 0xf94]
push edx
lea eax, [esp + 0x11a0]
push eax
push esi
call fcn.00401e60
push 0x208
lea ecx, [esp + 0xd9c]
push 0x2f30
push ecx
mov edi, eax
call fcn.00404dd0
lea edx, [esp + 0xda4]
push edx
push esi
call fcn.004021e0
push 0x208
mov byte [esp + 0x37], al
lea eax, [esp + 0x15d0]
push 0
push eax
call fcn.00404dd0
add esp, 0x2c
lea ecx, [esp + 0x15ac]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp edi, 1
jne 0x403b0e
lea edx, [esp + 0x119c]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0x119c]
push eax
jmp 0x403b43
lea ecx, [esp + 0xb84]
push ecx
call fcn.00401d90
add esp, 4
cmp eax, 1
jne 0x403b3b
lea edx, [esp + 0xb84]
push edx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
lea eax, [esp + 0xb84]
push eax
jmp 0x403b43
lea ecx, [esp + 0x15ac]
push ecx
call fcn.00401c80
lea edx, [esp + 0x13a8]
add esp, 4
push edx
call fcn.004036d0
mov ebx, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov ebp, dword [sym.imp.USER32.dll_LoadStringW]
add esp, 4
test eax, eax
je 0x403c9b
mov ecx, dword [0x41503c]
push 0x104
lea eax, [esp + 0x980]
push eax
push 0xa
push ecx
call ebp
mov eax, dword [0x41503c]
push 0x400
lea edx, [esp + 0x17b8]
push edx
push 2
push eax
call ebp
lea ecx, [esp + 0xf94]
push ecx
call fcn.0040561c
push 0x4105f4
push eax
call fcn.00404e4a
add esp, 0xc
test eax, eax
jne 0x403be0
push 0x24
lea edx, [esp + 0x980]
push edx
lea eax, [esp + 0x17bc]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp eax, 6
jne 0x403c9b
push 0x104
lea ecx, [esp + 0x368]
push ecx
call ebx
lea edi, [esp + 0x364]
add edi, 0xfffffffe
lea esp, [esp]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403c00
mov ecx, 8
mov esi, str.msiexec.exe__x
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x13a4]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403c23
lea edi, [esp + 0x364]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403c40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x364]
rep movsb byte es:[edi], byte [esi]
add eax, 0xfffffffe
mov cx, word [eax + 2]
add eax, 2
test cx, cx
jne 0x403c66
mov edx, dword [str.__qn]
mov ecx, dword [0x4105c8]
mov dword [eax], edx
mov dx, word [0x4105cc]
mov dword [eax + 4], ecx
mov word [eax + 8], dx
lea eax, [esp + 0x364]
push eax
call fcn.00401fa0
push 0x208
lea ecx, [esp + 0x160]
push 0
push ecx
call fcn.00404dd0
push 0x208
lea edx, [esp + 0x784]
push 0
push edx
call fcn.00404dd0
add esp, 0x18
lea ecx, [esp + 0x14]
call fcn.00401920
test eax, eax
je 0x403ceb
mov ecx, dword [0x41503c]
push 0x104
lea eax, [esp + 0x778]
push eax
push 3
push ecx
jmp 0x403d20
lea ecx, [esp + 0x14]
call fcn.00401940
push 0x104
test eax, eax
je 0x403d0f
mov eax, dword [0x41503c]
lea edx, [esp + 0x778]
push edx
push 0x11
push eax
jmp 0x403d20
mov edx, dword [0x41503c]
lea ecx, [esp + 0x778]
push ecx
push 0xd
push edx
call ebp
push 0x104
lea eax, [esp + 0x160]
push eax
call ebx
lea edi, [esp + 0x15c]
add edi, 0xfffffffe
jmp 0x403d40
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403d40
mov ecx, 8
mov esi, 0x4105a0
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x774]
movsw word es:[edi], word [esi]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403d63
lea edi, [esp + 0x15c]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403d80
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x15c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403da6
mov ecx, dword [0x41059c]
lea eax, [esp + 0xf94]
mov dword [edi], ecx
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403dc3
lea edi, [esp + 0x15c]
sub eax, edx
add edi, 0xfffffffe
lea ebx, [ebx]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403de0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 0x4103e0
mov ecx, eax
lea edx, [esp + 0x570]
and ecx, 3
push 0x104
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.004053e8
mov bl, byte [esp + 0x1f]
add esp, 0xc
test bl, bl
jne 0x403e5d
call fcn.00402ae0
movzx eax, ax
push eax
push str._d.mst
lea ecx, [esp + 0x13ac]
push 0x104
push ecx
call fcn.00404eab
lea edx, [esp + 0x13b4]
push edx
lea eax, [esp + 0x580]
push 0x104
push eax
call fcn.0040536b
add esp, 0x1c
jmp 0x403e91
lea ecx, [esp + 0xd8c]
push ecx
lea edx, [esp + 0x570]
push 0x104
push edx
call fcn.0040536b
push str..mst
lea eax, [esp + 0x57c]
push 0x104
push eax
call fcn.0040536b
add esp, 0x18
lea ecx, [esp + 0x56c]
push ecx
call fcn.00402170
lea edx, [esp + 0x570]
push edx
call fcn.00402010
add esp, 8
test eax, eax
je 0x403f70
push str.LR_DMIX.cab
call fcn.00402010
add esp, 4
test eax, eax
je 0x403f70
lea edi, [esp + 0x15c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403ed5
mov ecx, 6
mov esi, 0x41054c
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x14]
movsw word es:[edi], word [esi]
call fcn.00401c10
test eax, eax
je 0x403f19
lea edi, [esp + 0x15c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x403f06
mov eax, dword [0x410548]
mov dword [edi], eax
lea eax, [esp + 0x56c]
mov edx, eax
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403f22
lea edi, [esp + 0x15c]
sub eax, edx
add edi, 0xfffffffe
lea esp, [esp]
mov cx, word [edi + 2]
add edi, 2
test cx, cx
jne 0x403f40
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test bl, bl
je 0x403f70
lea ecx, [esp + 0xd8c]
push ecx
call fcn.00402100
add esp, 4
lea edx, [esp + 0x15c]
push edx
call fcn.00401fa0
lea eax, [esp + 0x15ac]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
call fcn.00401d50
mov eax, dword [0x415034]
pop edi
pop ebp
pop ebx
test eax, eax
je 0x403fad
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x415034], 0
lea ecx, [esp + 8]
call fcn.00401910
mov ecx, dword [esp + 0x1fa8]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00404dbf
add esp, 0x1fa8
ret 0x10