Function at 0x4e5320
Capabilities:
Check if file exists
Get file version info

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5addac
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2274
call fcn.005a3d50
mov eax, dword [0x615370]
xor eax, esp
mov dword [esp + 0x2270], eax
push ebx
push esi
push edi
mov eax, dword [0x615370]
xor eax, esp
push eax
lea eax, [esp + 0x2288]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, edx
mov dword [esp + 0x3c], eax
xor edi, edi
mov eax, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4e5381
sub eax, edx
sar eax, 1
cmp eax, 0x104
ja 0x4e560b
push 0x208
lea eax, [esp + 0x72]
xor edx, edx
push edi
push eax
mov word [esp + 0x78], dx
call fcn.0058e300
add esp, 0xc
push 0x104
lea ecx, [esp + 0x70]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
push esi
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
xor ecx, ecx
lea eax, [esp + 0x6c]
mov dword [esp + 0x30], 7
mov dword [esp + 0x2c], edi
mov word [esp + 0x1c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x4e53f7
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x70]
lea esi, [esp + 0x1c]
call int.00416910
lea edx, [esp + 0x64]
mov dword [esp + 0x2290], edi
mov edi, dword [0x625070]
mov ebx, dword [0x625058]
push edx
mov eax, esi
call fcn.004e77c0
mov esi, eax
mov eax, dword [esi]
test eax, eax
je 0x4e543f
cmp eax, ebx
je 0x4e5444
call fcn.00588c45
cmp dword [esi + 4], edi
mov esi, 8
setne bl
or edi, 0xffffffff
mov dword [esp + 0x2290], edi
cmp dword [esp + 0x30], esi
jb 0x4e546c
mov eax, dword [esp + 0x1c]
push eax
call fcn.005851f0
add esp, 4
test bl, bl
je 0x4e54fb
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x18]
call fcn.00455ff0
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2294], 1
call fcn.004e76a0
mov edx, dword [eax]
mov dword [esp + 0x2290], edi
mov dword [esp + 0x14], edx
cmp dword [esp + 0x30], esi
jb 0x4e54b6
mov eax, dword [esp + 0x1c]
push eax
call fcn.005851f0
add esp, 4
lea eax, [esp + 0x6c]
lea ecx, [esp + 0x18]
call fcn.00455ff0
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x2294], 2
call fcn.004e76a0
mov edx, dword [eax + 4]
mov dword [esp + 0x10], edx
cmp dword [esp + 0x30], esi
jb 0x4e560b
mov eax, dword [esp + 0x1c]
push eax
call fcn.005851f0
add esp, 4
jmp 0x4e560b
push 0x1fff
lea ecx, [esp + 0x281]
push 0
push ecx
mov byte [esp + 0x288], 0
call fcn.0058e300
add esp, 0xc
lea edx, [esp + 0x6c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4e560b
lea eax, [esp + 0x40]
push eax
lea ecx, [esp + 0x70]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x4e560b
cmp eax, 0x1fff
ja 0x4e560b
lea edx, [esp + 0x27c]
push edx
push eax
push 0
lea eax, [esp + 0x78]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4e560b
lea ecx, [esp + 0x60]
push ecx
lea edx, [esp + 0x38]
push edx
push 0x5cb130
lea eax, [esp + 0x288]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4e560b
mov eax, dword [esp + 0x34]
mov edi, dword [eax + 8]
mov ebx, dword [eax + 0xc]
xor ecx, ecx
lea eax, [esp + 0x6c]
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], ebx
mov dword [esp + 0x5c], 7
mov dword [esp + 0x58], 0
mov word [esp + 0x48], cx
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4e55c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x70]
lea esi, [esp + 0x48]
call int.00416910
mov edx, esi
push edx
mov dword [esp + 0x2294], 3
call fcn.004e76a0
cmp dword [esp + 0x5c], 8
mov esi, eax
jb 0x4e5606
mov eax, dword [esp + 0x48]
push eax
call fcn.005851f0
add esp, 4
mov dword [esi], edi
mov dword [esi + 4], ebx
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x4e5619
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
mov eax, dword [esp + 0x38]
test eax, eax
je 0x4e5627
mov edx, dword [esp + 0x10]
mov dword [eax], edx
mov ecx, dword [esp + 0x2288]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2270]
xor ecx, esp
call fcn.005886fc
mov esp, ebp
pop ebp
ret 4