Function at 0x438fa0
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x491947
push eax
mov dword fs:[0], esp
sub esp, 0x51c
push ebx
push esi
push edi
call fcn.0044bde0
test eax, eax
je 0x439058
push 0
lea eax, [esp + 0x28]
push str.CInstall98WA2_::_DoWA_n
push eax
call fcn.00471c30
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.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x124]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
mov ecx, dword [0x4b538c]
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 0x43908e
lea ebx, [ebp + 4]
test ebx, ebx
je 0x439237
jmp 0x43909f
mov ebp, dword [esp + 0x53c]
test ebx, ebx
je 0x4390d5
sub ebx, ebp
sub ebx, 3
mov eax, ebx
je 0x4390d5
cmp eax, 0x1f4
ja 0x4390d5
mov ecx, dword [ebp]
cmp eax, ecx
jae 0x4390c0
lea ebx, [eax + ebp + 4]
jmp 0x4390c2
xor ebx, ebx
dec eax
cmp eax, ecx
jae 0x4390d7
cmp eax, 0xffffffff
je 0x4390d7
mov ebp, dword [ebp + eax*4 + 0x1f8]
jmp 0x4390dd
xor ebx, ebx
add ebp, 0x9c8
mov eax, dword [ebp]
push eax
call fcn.004759f0
push eax
call fcn.00472ac0
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.00472550
mov ecx, dword [ebp]
push 0x4aae3c
push ecx
call fcn.004724d0
add esp, 0x14
test eax, eax
je 0x43922f
mov edi, dword [ebp]
sub eax, edi
cmp eax, 0xffffffff
je 0x43922f
push 0x4a919c
lea ecx, [esp + 0x24]
call fcn.004822f6
mov esi, eax
lea edx, [esp + 0x428]
lea ecx, [esp + 0x18]
push edx
mov byte [esp + 0x538], 1
call fcn.004822f6
push esi
push eax
lea eax, [esp + 0x1c]
mov byte [esp + 0x53c], 2
push eax
call fcn.0048246b
push edi
lea ecx, [esp + 0x20]
push eax
push ecx
mov byte [esp + 0x540], 3
call fcn.004824d1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x538], 4
call fcn.00482375
lea ecx, [esp + 0x1c]
mov byte [esp + 0x534], 3
call fcn.00482288
lea ecx, [esp + 0x14]
mov byte [esp + 0x534], 2
call fcn.00482288
lea ecx, [esp + 0x18]
mov byte [esp + 0x534], 1
call fcn.00482288
lea ecx, [esp + 0x20]
mov byte [esp + 0x534], 0
call fcn.00482288
mov edx, dword [esp + 0x10]
mov eax, dword [ebp + 0xc]
push 0
push edx
push eax
lea ecx, [esp + 0x30]
call fcn.0041b5a0
test eax, eax
jne 0x43922f
call fcn.0044bde0
test eax, eax
je 0x43922f
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.00471c30
add esp, 0x10
lea edx, [esp + 0x28]
push edx
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
test ebx, ebx
jne 0x439098
call fcn.0044bde0
test eax, eax
pop ebp
je 0x4392d8
push 0
lea eax, [esp + 0x328]
push str.CInstall98WA2_::_DoWA_n
push eax
call fcn.00471c30
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.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
lea ecx, [esp + 0xc]
mov dword [esp + 0x530], 0xffffffff
call fcn.00482288
mov ecx, dword [esp + 0x528]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x528
ret 4