Function at 0x4312a0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x484f37
push eax
mov dword fs:[0], esp
sub esp, 0x51c
push ebx
push esi
push edi
call fcn.00441cf0
test eax, eax
je 0x431358
push 0
lea eax, [esp + 0x28]
push str.CInstall98WA2_::_DoWA_n
push eax
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x124]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x124]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
mov ecx, dword [0x4a6844]
push ebp
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x428]
xor ebx, ebx
push 0x104
push edx
mov dword [esp + 0x53c], ebx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov ebp, dword [esp + 0x53c]
cmp dword [ebp], ebx
je 0x43138e
lea ebx, [ebp + 4]
test ebx, ebx
je 0x431537
jmp 0x43139f
mov ebp, dword [esp + 0x53c]
test ebx, ebx
je 0x4313d5
sub ebx, ebp
sub ebx, 3
mov eax, ebx
je 0x4313d5
cmp eax, 0x1f4
ja 0x4313d5
mov ecx, dword [ebp]
cmp eax, ecx
jae 0x4313c0
lea ebx, [eax + ebp + 4]
jmp 0x4313c2
xor ebx, ebx
dec eax
cmp eax, ecx
jae 0x4313d7
cmp eax, 0xffffffff
je 0x4313d7
mov ebp, dword [ebp + eax*4 + 0x1f8]
jmp 0x4313dd
xor ebx, ebx
add ebp, 0x9c8
mov eax, dword [ebp]
push eax
call fcn.00469630
push eax
call fcn.00466700
mov edx, eax
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push edx
mov eax, ecx
mov esi, edi
mov edi, dword [ebp]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00466190
mov ecx, dword [ebp]
push 0x49cd2c
push ecx
call fcn.00466110
add esp, 0x14
test eax, eax
je 0x43152f
mov edi, dword [ebp]
sub eax, edi
cmp eax, 0xffffffff
je 0x43152f
push 0x49b19c
lea ecx, [esp + 0x24]
call fcn.00475f16
mov esi, eax
lea edx, [esp + 0x428]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x538], 1
call fcn.00475f16
push esi
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x53c], 2
push eax
call fcn.0047608b
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x540], 3
call fcn.004760f1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x538], 4
call fcn.00475f95
lea ecx, [esp + 0x1c]
mov byte [esp + 0x534], 3
call fcn.00475ea8
lea ecx, [esp + 0x14]
mov byte [esp + 0x534], 2
call fcn.00475ea8
lea ecx, [esp + 0x18]
mov byte [esp + 0x534], 1
call fcn.00475ea8
lea ecx, [esp + 0x20]
mov byte [esp + 0x534], 0
call fcn.00475ea8
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.00418dc0
test eax, eax
jne 0x43152f
call fcn.00441cf0
test eax, eax
je 0x43152f
mov eax, dword [esp + 0x10]
mov ebp, dword [ebp + 0xc]
push eax
push ebp
lea ecx, [esp + 0x30]
push str.FAILED_CopyAFile_:_Source___s__Destination___s_n
push ecx
call fcn.00465850
add esp, 0x10
lea edx, [esp + 0x28]
push edx
call fcn.00441c80
mov ecx, eax
call fcn.00442090
test ebx, ebx
jne 0x431398
call fcn.00441cf0
test eax, eax
pop ebp
je 0x4315d8
push 0
lea eax, [esp + 0x328]
push str.CInstall98WA2_::_DoWA_n
push eax
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x224]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x224]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x324]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x224]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
lea ecx, [esp + 0xc]
mov dword [esp + 0x530], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x528]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x528
ret 4