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

Disassembly:
push ebp
lea ebp, [esp - 0x26734]
mov eax, 0x26734
call fcn.0044f4d0
push 0xffffffffffffffff
push 0x49a27c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x4d44e4]
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.00402423
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.00401eb7
cmp esi, ebx
je 0x40c824
push 0x49da34
lea ecx, [ebp + 0x264b8]
call fcn.00402423
cmp dword [esi + 0x18], 8
mov dword [ebp - 4], 1
jb 0x40c200
mov esi, dword [esi + 4]
jmp 0x40c203
add esi, 4
push esi
lea ecx, [ebp + 0x264b8]
call fcn.004023ba
push 0x206
lea eax, [ebp + 0x2652a]
push ebx
push eax
mov word [ebp + 0x26528], bx
call fcn.0044e570
mov eax, dword [ebp + 0x264bc]
add esp, 0xc
cmp dword [ebp + 0x264d0], 8
jae 0x40c240
lea eax, [ebp + 0x264bc]
lea ecx, [ebp + 0x26528]
push ecx
push eax
call fcn.0040f63b
pop ecx
pop ecx
lea eax, [ebp + 0x26528]
push eax
lea ecx, [ebp + 0x26480]
call fcn.00402423
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.0040bc78
add esp, 0xc
cmp dword [ebp + 0x26508], 8
mov eax, dword [ebp + 0x264f4]
mov byte [ebp - 4], 3
jae 0x40c29b
lea eax, [ebp + 0x264f4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c2c2
cmp dword [ebp + 0x26508], 8
mov eax, dword [ebp + 0x264f4]
jae 0x40c2bb
lea eax, [ebp + 0x264f4]
push eax
call fcn.004101fe
pop ecx
lea eax, [ebp + 0x2649c]
push edi
push eax
call fcn.00410598
lea eax, [ebp + 0x264b8]
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 4
call fcn.00410598
add esp, 0x10
cmp dword [eax + 0x18], 0x10
jb 0x40c2f1
mov eax, dword [eax + 4]
jmp 0x40c2f4
add eax, 4
push eax
lea eax, [ebp + 0x25e30]
push eax
call fcn.0044e920
pop ecx
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.004012b5
cmp dword [ebp + 0x264b4], 0x10
mov eax, dword [ebp + 0x264a0]
jae 0x40c323
lea eax, [ebp + 0x264a0]
push eax
lea eax, [ebp + 0x26030]
push eax
call fcn.0044e920
pop ecx
pop ecx
lea ecx, [ebp]
call fcn.004045a3
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.00404e41
lea ecx, [ebp]
call fcn.00404af8
lea ecx, [ebp + 0x26130]
call fcn.00404564
lea ecx, [ebp]
call fcn.00404601
test eax, eax
je 0x40c3ab
lea eax, [ebp + 0x26130]
push eax
lea ecx, [ebp]
call fcn.00404aac
fld qword [ebp + 0x26440]
fdiv qword [ebp + 0x26438]
push ecx
fstp dword [ebp - 0x10]
fld dword [ebp - 0x10]
fstp dword [esp]
call fcn.00407317
mov ecx, eax
call fcn.00406582
lea ecx, [ebp]
call fcn.0040460d
test eax, eax
je 0x40c36e
lea eax, [ebp + 0x26130]
push eax
lea ecx, [ebp]
call fcn.00404aac
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.00407317
mov ecx, eax
call fcn.00406582
fld qword [ebp + 0x26438]
fcomp qword [ebp - 0x3c]
fnstsw ax
test ah, 0x44
jp 0x40c7e1
fldz
fcomp qword [ebp - 0x3c]
fnstsw ax
test ah, 0x44
jnp 0x40c7e1
mov esi, 0x49da34
push esi
lea ecx, [ebp + 0x2650c]
call fcn.00402423
push esi
lea ecx, [ebp + 0x26464]
mov byte [ebp - 4], 6
call fcn.00402423
push esi
lea ecx, [ebp + 0x26448]
mov byte [ebp - 4], 7
call fcn.00402423
push str.InstallByName
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00402423
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.00401eb7
cmp esi, ebx
je 0x40c49b
cmp dword [esi + 0x18], 8
jb 0x40c48a
mov esi, dword [esi + 4]
jmp 0x40c48d
add esi, 4
push esi
lea ecx, [ebp + 0x26464]
call fcn.004023ba
jmp 0x40c50f
push 1
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp + 0x26480]
mov dword [ebp - 0x10], 0x2e
call fcn.0040bbc5
push eax
push ebx
lea eax, [ebp + 0x264d4]
push eax
lea ecx, [ebp + 0x26480]
call fcn.0040543d
push 0x49f3b8
push eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 0xa
call fcn.0040bcc3
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x26464]
mov byte [ebp - 4], 0xb
call fcn.004021f7
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401eb7
push ebx
push 1
lea ecx, [ebp + 0x264d4]
mov byte [ebp - 4], 8
call fcn.00401eb7
push str.InstallParam
lea ecx, [ebp - 0x2c]
call fcn.00402423
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.00401eb7
cmp esi, ebx
je 0x40c55b
cmp dword [esi + 0x18], 8
jb 0x40c54c
mov esi, dword [esi + 4]
jmp 0x40c54f
add esi, 4
push esi
lea ecx, [ebp + 0x26448]
call fcn.004023ba
push str.InstallVer
lea ecx, [ebp - 0x2c]
call fcn.00402423
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.00401eb7
cmp esi, ebx
je 0x40c5c1
cmp dword [esi + 0x18], 8
lea edi, [esi + 4]
jb 0x40c59a
mov eax, dword [edi]
jmp 0x40c59c
mov eax, edi
push eax
call fcn.00407317
mov ecx, eax
call fcn.00407301
cmp dword [esi + 0x18], 8
jb 0x40c5b1
mov edi, dword [edi]
push edi
call fcn.00407317
mov ecx, eax
call fcn.004065bc
mov edi, dword [ebp - 0x30]
push 0x49f370
lea ecx, [ebp - 0x2c]
call fcn.00402423
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.00401eb7
cmp esi, ebx
je 0x40c610
cmp dword [esi + 0x18], 8
jb 0x40c600
mov esi, dword [esi + 4]
jmp 0x40c603
add esi, 4
push esi
call fcn.00407317
mov ecx, eax
call fcn.0040730c
lea eax, [ebp + 0x26464]
push eax
push dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
call fcn.0040bc78
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [ebp + 0x2650c]
mov byte [ebp - 4], 0xf
call fcn.004021f7
push ebx
push edi
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 8
call fcn.00401eb7
cmp dword [ebp + 0x26524], 8
mov ecx, dword [ebp + 0x26510]
jae 0x40c65c
lea ecx, [ebp + 0x26510]
cmp dword [ebp + 0x26508], 8
mov eax, dword [ebp + 0x264f4]
jae 0x40c671
lea eax, [ebp + 0x264f4]
push ecx
push eax
call fcn.0040f75b
cmp dword [ebp + 0x26524], 8
mov eax, dword [ebp + 0x26510]
pop ecx
pop ecx
jae 0x40c68f
lea eax, [ebp + 0x26510]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c757
mov esi, 0x49da34
push esi
lea ecx, [ebp + 0x26448]
call fcn.0040522d
test eax, eax
jne 0x40c6d4
cmp dword [ebp + 0x26524], 8
mov eax, dword [ebp + 0x26510]
jae 0x40c6c8
lea eax, [ebp + 0x26510]
push eax
call fcn.0040f502
pop ecx
jmp 0x40c757
push esi
lea ecx, [ebp + 0x264d4]
call fcn.00402423
push 0x49f36c
lea ecx, [ebp + 0x264d4]
mov byte [ebp - 4], 0x10
call fcn.004023ba
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x2650c]
push eax
lea ecx, [ebp + 0x264d4]
call fcn.0040210d
push 0x49f364
lea ecx, [ebp + 0x264d4]
call fcn.0040239d
push 0xffffffffffffffff
push ebx
lea eax, [ebp + 0x26448]
push eax
lea ecx, [ebp + 0x264d4]
call fcn.0040210d
cmp dword [ebp + 0x264ec], 8
mov eax, dword [ebp + 0x264d8]
jae 0x40c743
lea eax, [ebp + 0x264d8]
push eax
call fcn.0040f502
pop ecx
push ebx
push edi
lea ecx, [ebp + 0x264d4]
call fcn.00401eb7
cmp dword [ebp + 0x26524], 8
mov eax, dword [ebp + 0x26510]
jae 0x40c76c
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.00401eb7
push ebx
push edi
lea ecx, [ebp + 0x26464]
call fcn.00401eb7
push ebx
push edi
lea ecx, [ebp + 0x2650c]
call fcn.00401eb7
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.004045fc
push ebx
push edi
lea ecx, [ebp + 0x2649c]
call fcn.004012b5
push ebx
push edi
lea ecx, [ebp + 0x264f0]
call fcn.00401eb7
push ebx
push edi
lea ecx, [ebp + 0x26480]
call fcn.00401eb7
push ebx
push edi
lea ecx, [ebp + 0x264b8]
call fcn.00401eb7
mov eax, edi
jmp 0x40c826
lea ecx, [ebp]
mov byte [ebp - 4], 4
call fcn.004045fc
xor esi, esi
push ebx
inc esi
push esi
lea ecx, [ebp + 0x2649c]
call fcn.004012b5
push ebx
push esi
lea ecx, [ebp + 0x264f0]
call fcn.00401eb7
push ebx
push esi
lea ecx, [ebp + 0x26480]
call fcn.00401eb7
push ebx
push esi
lea ecx, [ebp + 0x264b8]
call fcn.00401eb7
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.0044df8c
add ebp, 0x26734
leave
ret