Function at 0x4457c0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ee824
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x677010]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x274], edi
mov byte [ebp - 0x26c], 0
call fcn.0040cc25
mov ecx, eax
test ecx, ecx
jne 0x445812
push 0x80004005
call fcn.004022e2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x445827
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x445829
call edx
add eax, 0x10
mov dword [ebp - 0x268], eax
push 2
push 0x63bd78
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 0
call fcn.004020e3
mov esi, dword [ebp - 0x268]
mov ecx, dword [edi]
push esi
push 0
push 0x1175e
call fcn.0041aa40
mov dword [ebp - 4], 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4458a4
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4458a2
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4458a2
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x4458a4
call edx
push 0x63fdc8
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 0xffffffff
call fcn.0040d2b0
mov dword [ebp - 4], 2
call fcn.0040cc25
mov ecx, eax
test ecx, ecx
jne 0x4458d7
push 0x80004005
call fcn.004022e2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4458ec
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x4458ee
call edx
add eax, 0x10
mov dword [ebp - 0x268], eax
lea eax, [ebp - 0x26c]
mov dword [ebp - 4], 4
push eax
lea ecx, [ebp - 0x268]
call fcn.00410610
push ecx
push 0x2c
lea ecx, [ebp - 0x268]
call fcn.004697c0
push dword [ebp - 0x268]
mov ecx, dword [edi]
push 0
push 0x1175f
call fcn.0041aa40
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 0xffffffff
call fcn.00442750
lea eax, [ebp - 0x260]
push eax
push str.windows_systemappsmicrosoft.microsoftedge
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x445f0b
mov byte [ebp - 0x26c], 1
call fcn.0040cc25
mov ecx, eax
test ecx, ecx
jne 0x44597b
push 0x80004005
call fcn.004022e2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x445990
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x445992
call edx
add eax, 0x10
mov dword [ebp - 0x268], eax
push 3
push 0x644174
lea ecx, [ebp - 0x268]
mov dword [ebp - 4], 5
call fcn.004020e3
push dword [ebp - 0x268]
mov ecx, dword [edi]
push 0
push 0x1175e
call fcn.0041aa40
lea ecx, [ebp - 0x26c]
mov dword [ebp - 4], 0xffffffff
call fcn.00473660
push str.windows_systemapps_
lea ecx, [ebp - 0x264]
call fcn.0040d2b0
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], 6
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445a00
mov eax, dword [ebp - 0x264]
lea edi, [ebp - 0x234]
sub ecx, edx
sub edi, eax
sar ecx, 1
sar edi, 1
mov esi, dword [eax - 0xc]
mov eax, ecx
not eax
mov dword [ebp - 0x270], esi
test eax, eax
js 0x445a3a
push 0x80070057
call fcn.004022e2
push ecx
lea eax, [ebp - 0x234]
push eax
call fcn.005c69c1
mov ebx, eax
mov ecx, SysReAllocString
sub ecx, ebx
add esp, 8
cmp ecx, esi
jge 0x445a61
push 0x80070057
call fcn.004022e2
add esi, ebx
jns 0x445a6f
push 0x80070057
call fcn.004022e2
mov eax, dword [ebp - 0x264]
mov edx, 1
mov ecx, dword [eax - 8]
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x445a98
push esi
lea ecx, [ebp - 0x264]
call fcn.00401fda
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 0x270]
lea edx, [eax + edi*2]
cmp edi, ecx
jbe 0x445aab
lea edx, [ebp - 0x234]
push ebx
push edx
lea eax, [eax + ecx*2]
push ebx
push eax
call fcn.004021b7
mov eax, dword [ebp - 0x264]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x445a30
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x264]
mov edi, str.microsoftedge.exe
push 0x12
push str.microsoftedge.exe
mov word [eax + esi*2], cx
mov eax, dword [ebp - 0x264]
sub edi, eax
sar edi, 1
mov ebx, dword [eax - 0xc]
call fcn.005c69c1
mov edx, eax
add esp, 8
mov eax, SysReAllocString
mov dword [ebp - 0x27c], edx
sub eax, edx
cmp eax, ebx
jge 0x445b16
push 0x80070057
call fcn.004022e2
lea esi, [ebx + edx]
test esi, esi
jns 0x445b27
push 0x80070057
call fcn.004022e2
mov eax, dword [ebp - 0x264]
mov ecx, 1
sub ecx, dword [eax - 4]
mov dword [ebp - 0x270], ecx
mov ecx, dword [eax - 8]
sub ecx, esi
or ecx, dword [ebp - 0x270]
jge 0x445b60
push esi
lea ecx, [ebp - 0x264]
call fcn.00401fda
mov eax, dword [ebp - 0x264]
mov edx, dword [ebp - 0x27c]
lea ecx, [eax + edi*2]
cmp edi, ebx
jbe 0x445b6c
mov ecx, str.microsoftedge.exe
push edx
push ecx
push edx
lea eax, [eax + ebx*2]
push eax
call fcn.004021b7
mov eax, dword [ebp - 0x264]
add esp, 0x10
cmp esi, dword [eax - 8]
jg 0x445a30
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp - 0x264]
mov word [eax + esi*2], cx
call fcn.0040cc25
mov ecx, eax
test ecx, ecx
jne 0x445bae
push 0x80004005
call fcn.004022e2
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x445bc3
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
jmp 0x445bc5
call edx
lea esi, [eax + 0x10]
mov dword [ebp - 0x270], esi
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x264]
push ecx
push eax
mov dword [ebp - 0x280], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
je 0x445d58
push edi
call fcn.005c9188
mov ebx, eax
add esp, 4
mov dword [ebp - 0x278], ebx
test ebx, ebx
je 0x445d58
push ebx
push edi
push dword [ebp - 0x27c]
push dword [ebp - 0x280]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x445d4f
lea eax, [ebp - 0x268]
push eax
lea eax, [ebp - 0x284]
push eax
push 0x63fe60
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x445d4f
mov eax, dword [ebp - 0x284]
push dword [ebp - 0x278]
movzx ecx, word [eax + 0xa]
movzx ebx, word [eax + 8]
movzx edi, word [eax + 0xe]
movzx esi, word [eax + 0xc]
mov dword [ebp - 0x280], ecx
call fcn.005c6b78
mov eax, dword [ebp - 0x280]
push esi
push edi
push ebx
movzx eax, ax
push eax
lea eax, [ebp - 0x270]
push str._d._d._d._d
push eax
call fcn.00443a90
add esp, 0x1c
lea eax, [ebp - 0x270]
lea ecx, [ebp - 0x26c]
push eax
call fcn.004736f0
lea esi, [eax + 4]
mov byte [ebp - 4], 8
push eax
mov ecx, esi
call fcn.00410610
push ecx
push 0x2c
mov ecx, esi
call fcn.004697c0
push dword [esi]
mov ebx, dword [ebp - 0x274]
push 0
push 0x1175f
mov ecx, dword [ebx]
call fcn.0041aa40
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.00442750
push 1
lea ecx, [ebp - 0x26c]
call fcn.00473610
mov byte [ebp - 4], 9
lea esi, [eax + 4]
cmp byte [eax], 0
mov ecx, 0x63bd78
mov edx, 0x644174
cmove edx, ecx
mov ecx, edx
lea edi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x445d10
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.004020e3
push dword [esi]
mov ecx, dword [ebx]
push 0
push 0x1175e
call fcn.0041aa40
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.00473660
mov esi, dword [ebp - 0x270]
jmp 0x445d5e
push ebx
call fcn.005c6b78
add esp, 4
mov ebx, dword [ebp - 0x274]
mov eax, dword [0x6834c8]
cmp dword [eax - 0xc], 0
jl 0x445e7b
push str.edge
push eax
call fcn.005c01d4
add esp, 8
test eax, eax
je 0x445e7b
sub eax, dword [0x6834c8]
sar eax, 1
js 0x445e7b
push str.Edge
lea ecx, [ebp - 0x278]
call fcn.0040d2b0
mov byte [ebp - 4], 0xa
push dword [eax]
mov ecx, dword [ebx]
push 0
push 0x11717
call fcn.0041aa40
lea ecx, [ebp - 0x278]
mov byte [ebp - 4], 7
call fcn.0040d260
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x26c]
call fcn.004736f0
lea edi, [eax + 4]
mov byte [ebp - 4], 0xb
push eax
mov ecx, edi
call fcn.00410610
push ecx
push 0x2c
mov ecx, edi
call fcn.004697c0
push dword [edi]
mov ecx, dword [ebx]
push 0
push 0x11724
call fcn.0041aa40
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.00442750
push 1
lea ecx, [ebp - 0x26c]
call fcn.00473610
mov byte [ebp - 4], 0xc
lea edi, [eax + 4]
cmp byte [eax], 0
mov edx, 0x63bd78
mov ecx, 0x644174
cmove ecx, edx
mov edx, ecx
lea eax, [edx + 2]
mov dword [ebp - 0x278], eax
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x445e40
sub edx, dword [ebp - 0x278]
sar edx, 1
push edx
push ecx
mov ecx, edi
call fcn.004020e3
push dword [edi]
mov ecx, dword [ebx]
push 0
push 0x11760
call fcn.0041aa40
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 7
call fcn.00473660
or ebx, 0xffffffff
mov byte [ebp - 4], 6
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x445ec0
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x445ebe
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x445ebe
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
push 0
push dword [ecx + 4]
call edi
jmp 0x445ec6
call edx
mov edi, dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x264]
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x445f0b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x445f07
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov esi, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x445f07
push 0
push dword [edx + 4]
call edi
jmp 0x445f0b
mov ecx, edx
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005bc745
mov esp, ebp
pop ebp
ret