Function at 0x409f4c
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
lea ebp, [esp - 0x26734]
mov eax, 0x26734
call fcn.00445d40
push 0xffffffffffffffff
push 0x4acc02
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4f43d8]
xor eax, ebp
mov dword [ebp + 0x26730], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push str.InstallFile
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], edi
call fcn.00402933
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
xor ebx, ebx
push edx
mov dword [ebp - 4], ebx
call dword [eax + 0x1c]
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.004023bd
cmp esi, ebx
je 0x40a60b
push 0x4b09e8
lea ecx, [ebp + 0x264b8]
call fcn.00402933
cmp dword [esi + 0x18], 8
mov dword [ebp - 4], 1
jb 0x409fe7
mov esi, dword [esi + 4]
jmp 0x409fea
add esi, 4
push esi
lea ecx, [ebp + 0x264b8]
call fcn.00402916
push 0x206
lea eax, [ebp + 0x2652a]
push ebx
push eax
mov word [ebp + 0x26528], bx
call fcn.00444860
mov eax, dword [ebp + 0x264bc]
add esp, 0xc
cmp dword [ebp + 0x264d0], 8
jae 0x40a027
lea eax, [ebp + 0x264bc]
lea ecx, [ebp + 0x26528]
push ecx
push eax
call fcn.0040b4e8
pop ecx
pop ecx
lea eax, [ebp + 0x26528]
push eax
lea ecx, [ebp + 0x26480]
call fcn.00402933
lea eax, [ebp + 0x26480]
push eax
add edi, 0x14
lea eax, [ebp + 0x264f0]
push edi
push eax
mov byte [ebp - 4], 2
mov dword [ebp - 0x34], edi
call fcn.00409a5f
add esp, 0xc
cmp dword [ebp + 0x26508], 8
mov eax, dword [ebp + 0x264f4]
mov byte [ebp - 4], 3
jae 0x40a082
lea eax, [ebp + 0x264f4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a0a9
cmp dword [ebp + 0x26508], 8
mov eax, dword [ebp + 0x264f4]
jae 0x40a0a2
lea eax, [ebp + 0x264f4]
push eax
call fcn.0040b6d4
pop ecx
lea eax, [ebp + 0x2649c]
push edi
push eax
call fcn.0040b943
lea eax, [ebp + 0x264b8]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.0040b943
add esp, 0x10
cmp dword [eax + 0x18], 0x10
jb 0x40a0d8
mov eax, dword [eax + 4]
jmp 0x40a0db
add eax, 4
push eax
lea eax, [ebp + 0x25e30]
push eax
call fcn.00444be0
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040192e
cmp dword [ebp + 0x264b4], 0x10
mov eax, dword [ebp + 0x264a0]
jae 0x40a10a
lea eax, [ebp + 0x264a0]
push eax
lea eax, [ebp + 0x26030]
push eax
call fcn.00444be0
pop ecx
pop ecx
lea ecx, [ebp]
call fcn.004045a4
sub esp, 0x300
mov edi, esp
mov ecx, 0xc0
lea esi, [ebp + 0x25e30]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp]
mov byte [ebp - 4], 5
call fcn.00404e61
lea ecx, [ebp]
call fcn.00404b18
lea ecx, [ebp + 0x26130]
call fcn.00404565
lea ecx, [ebp]
call fcn.00404602
test eax, eax
je 0x40a192
lea eax, [ebp + 0x26130]
push eax
lea ecx, [ebp]
call fcn.00404aad
fld qword [ebp + 0x26440]
fdiv qword [ebp + 0x26438]
push ecx
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fstp dword [esp]
call fcn.0040783c
mov ecx, eax
call fcn.0040576c
lea ecx, [ebp]
call fcn.0040460e
test eax, eax
je 0x40a155
lea eax, [ebp + 0x26130]
push eax
lea ecx, [ebp]
call fcn.00404aad
fld qword [ebp + 0x26440]
fstp qword [ebp - 0x3c]
push ecx
fld qword [ebp + 0x26440]
fdiv qword [ebp + 0x26438]
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fstp dword [esp]
call fcn.0040783c
mov ecx, eax
call fcn.0040576c
fld qword [ebp + 0x26438]
fcomp qword [ebp - 0x3c]
fnstsw ax
test ah, 0x44
jp 0x40a5c8
fldz
fcomp qword [ebp - 0x3c]
fnstsw ax
test ah, 0x44
jnp 0x40a5c8
mov esi, 0x4b09e8
push esi
lea ecx, [ebp + 0x2650c]
call fcn.00402933
push esi
lea ecx, [ebp + 0x26464]
mov byte [ebp - 4], 6
call fcn.00402933
push esi
lea ecx, [ebp + 0x26448]
mov byte [ebp - 4], 7
call fcn.00402933
push str.InstallByName
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00402933
mov edi, dword [ebp - 0x30]
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 9
call dword [eax + 0x1c]
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.004023bd
cmp esi, ebx
je 0x40a282
cmp dword [esi + 0x18], 8
jb 0x40a271
mov esi, dword [esi + 4]
jmp 0x40a274
add esi, 4
push esi
lea ecx, [ebp + 0x26464]
call fcn.00402916
jmp 0x40a2f6
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x26480]
mov dword [ebp - 0x10], 0x2e
call fcn.00409942
push eax
push ebx
lea eax, [ebp + 0x264d4]
push eax
lea ecx, [ebp + 0x26480]
call fcn.00409a41
push 0x4b1dc8
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.00409aaa
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x26464]
mov byte [ebp - 4], 0xb
call fcn.00402707
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004023bd
push ebx
push 1
lea ecx, [ebp + 0x264d4]
mov byte [ebp - 4], 8
call fcn.004023bd
push str.InstallParam
lea ecx, [ebp - 0x2c]
call fcn.00402933
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 0xc
call dword [eax + 0x1c]
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.004023bd
cmp esi, ebx
je 0x40a342
cmp dword [esi + 0x18], 8
jb 0x40a333
mov esi, dword [esi + 4]
jmp 0x40a336
add esi, 4
push esi
lea ecx, [ebp + 0x26448]
call fcn.00402916
push str.InstallVer
lea ecx, [ebp - 0x2c]
call fcn.00402933
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 0xd
call dword [eax + 0x1c]
push ebx
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.004023bd
cmp esi, ebx
je 0x40a3a8
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x40a381
mov eax, dword [edi]
jmp 0x40a383
mov eax, edi
push eax
call fcn.0040783c
mov ecx, eax
call fcn.00406143
cmp dword [esi + 0x18], 8
jb 0x40a398
mov edi, dword [edi]
push edi
call fcn.0040783c
mov ecx, eax
call fcn.004057a6
mov edi, dword [ebp - 0x30]
push 0x4b1d80
lea ecx, [ebp - 0x2c]
call fcn.00402933
mov ecx, dword [edi + 0x4c]
mov eax, dword [ecx]
lea edx, [ebp - 0x2c]
push edx
mov byte [ebp - 4], 0xe
call dword [eax + 0x1c]
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0x2c]
mov esi, eax
mov byte [ebp - 4], 8
call fcn.004023bd
cmp esi, ebx
je 0x40a3f7
cmp dword [esi + 0x18], 8
jb 0x40a3e7
mov esi, dword [esi + 4]
jmp 0x40a3ea
add esi, 4
push esi
call fcn.0040783c
mov ecx, eax
call fcn.0040614e
lea eax, [ebp + 0x26464]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.00409a5f
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x2650c]
mov byte [ebp - 4], 0xf
call fcn.00402707
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.004023bd
cmp dword [ebp + 0x26524], 8
mov ecx, dword [ebp + 0x26510]
jae 0x40a443
lea ecx, [ebp + 0x26510]
cmp dword [ebp + 0x26508], 8
mov eax, dword [ebp + 0x264f4]
jae 0x40a458
lea eax, [ebp + 0x264f4]
push ecx
push eax
call fcn.0040b554
cmp dword [ebp + 0x26524], 8
mov eax, dword [ebp + 0x26510]
pop ecx
pop ecx
jae 0x40a476
lea eax, [ebp + 0x26510]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40a53e
mov esi, 0x4b09e8
push esi
lea ecx, [ebp + 0x26448]
call fcn.004099d3
test eax, eax
jne 0x40a4bb
cmp dword [ebp + 0x26524], 8
mov eax, dword [ebp + 0x26510]
jae 0x40a4af
lea eax, [ebp + 0x26510]
push eax
call fcn.0040b3af
pop ecx
jmp 0x40a53e
push esi
lea ecx, [ebp + 0x264d4]
call fcn.00402933
push 0x4b1d7c
lea ecx, [ebp + 0x264d4]
mov byte [ebp - 4], 0x10
call fcn.00402916
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x2650c]
push eax
lea ecx, [ebp + 0x264d4]
call fcn.0040265e
push 0x4b1d74
lea ecx, [ebp + 0x264d4]
call fcn.004028f9
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x26448]
push eax
lea ecx, [ebp + 0x264d4]
call fcn.0040265e
cmp dword [ebp + 0x264ec], 8
mov eax, dword [ebp + 0x264d8]
jae 0x40a52a
lea eax, [ebp + 0x264d8]
push eax
call fcn.0040b3af
pop ecx
push ebx
push edi
lea ecx, [ebp + 0x264d4]
call fcn.004023bd
cmp dword [ebp + 0x26524], 8
mov eax, dword [ebp + 0x26510]
jae 0x40a553
lea eax, [ebp + 0x26510]
push 5
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push ebx
push edi
lea ecx, [ebp + 0x26448]
call fcn.004023bd
push ebx
push edi
lea ecx, [ebp + 0x26464]
call fcn.004023bd
push ebx
push edi
lea ecx, [ebp + 0x2650c]
call fcn.004023bd
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.004045fd
push ebx
push edi
lea ecx, [ebp + 0x2649c]
call fcn.0040192e
push ebx
push edi
lea ecx, [ebp + 0x264f0]
call fcn.004023bd
push ebx
push edi
lea ecx, [ebp + 0x26480]
call fcn.004023bd
push ebx
push edi
lea ecx, [ebp + 0x264b8]
call fcn.004023bd
mov eax, edi
jmp 0x40a60d
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.004045fd
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x2649c]
call fcn.0040192e
push ebx
push esi
lea ecx, [ebp + 0x264f0]
call fcn.004023bd
push ebx
push esi
lea ecx, [ebp + 0x26480]
call fcn.004023bd
push ebx
push esi
lea ecx, [ebp + 0x264b8]
call fcn.004023bd
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x26730]
xor ecx, ebp
call fcn.004442cc
add ebp, 0x26734
leave
ret