Function at 0x411fb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e5ecc
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x66ee94]
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 ebx, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x238], ebx
mov dword [ebp - 0x248], ebx
call fcn.004030d0
mov ecx, eax
test ecx, ecx
je 0x4124bb
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4124c5
lock inc dword [ecx + 0x14]
lea eax, [ecx + 8]
lea edi, [eax + 0x10]
mov dword [ebp - 0x244], edi
push esi
lea ecx, [ebp - 0x23c]
mov dword [ebp - 4], 0
call fcn.0040c9c0
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x23c]
cmp dword [eax - 0xc], 0
jne 0x412170
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004bd150
add esp, 0xc
mov dword [ebp - 0x234], 0
lea eax, [ebp - 0x234]
push eax
push 0x411ef0
push 6
call dword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
lea eax, [ebp - 0x218]
push 0x104
push eax
je 0x412092
push dword [ebp - 0x234]
jmp 0x412094
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4120c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.004118f0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
jb 0x412103
mov edx, dword [ebp - 0x230]
test edx, edx
jne 0x412103
xor ecx, ecx
jmp 0x41211f
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x412110
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x23c]
call fcn.0040ced0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x412170
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x412166
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4124cc
push edx
push ecx
call fcn.004ba5b1
add esp, 8
push 0
push dword [ebp - 0x23c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x234], eax
test eax, eax
jne 0x412205
add edi, 0xfffffff0
mov ecx, edi
call fcn.00412660
add eax, 0x10
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x23c]
or esi, 0xffffffff
mov dword [ebx], eax
add ecx, 0xfffffff0
mov eax, esi
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41245b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x238]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4124db
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x238]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4124d1
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41245b
lea ebx, [eax + 1]
push ebx
call fcn.004ba5bf
mov esi, eax
mov dword [ebp - 0x24c], esi
push ebx
push 0
push esi
mov byte [ebp - 4], 3
call fcn.004bd150
add esp, 0x10
push esi
push dword [ebp - 0x234]
push 0
push dword [ebp - 0x23c]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x4122d5
add edi, 0xfffffff0
mov ecx, edi
call fcn.00412660
mov ebx, dword [ebp - 0x238]
add eax, 0x10
mov dword [ebx], eax
test esi, esi
je 0x412267
push 1
push esi
call fcn.004ba5b1
add esp, 8
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov ecx, dword [ebp - 0x23c]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41245b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x238]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x4124f5
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x238]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x4124e8
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41245b
lea eax, [ebp - 0x248]
mov dword [ebp - 0x240], 0
push eax
lea eax, [ebp - 0x240]
mov dword [ebp - 0x248], 0
push eax
push str.StringFileInfo080404b0FileVersion
push esi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
jne 0x41239d
add edi, 0xfffffff0
mov ecx, edi
call fcn.00412660
mov ebx, dword [ebp - 0x238]
add eax, 0x10
mov dword [ebx], eax
test esi, esi
je 0x41232f
push 1
push esi
call fcn.004ba5b1
add esp, 8
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov ecx, dword [ebp - 0x23c]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41245b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x238]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x41250f
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x238]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x412502
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x41245b
mov edx, dword [ebp - 0x240]
test edx, edx
jne 0x4123ab
xor ecx, ecx
jmp 0x4123bf
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4123b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x244]
call fcn.0040ced0
mov edi, dword [ebp - 0x244]
add edi, 0xfffffff0
mov ecx, edi
call fcn.00412660
mov ebx, dword [ebp - 0x238]
add eax, 0x10
mov dword [ebx], eax
test esi, esi
je 0x4123f6
push 1
push esi
call fcn.004ba5b1
add esp, 8
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov ecx, dword [ebp - 0x23c]
mov eax, esi
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x41245b
mov edx, dword [ecx]
push ecx
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x238]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412529
mov edx, dword [edx + 4]
mov eax, dword [edx]
mov ebx, dword [eax + 4]
mov dword [ebp - 0x234], ebx
mov ebx, dword [ebp - 0x238]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x41251c
push 0
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [ebp - 4], 0xffffffff
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x41249d
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CAtlStringMgr.0
jne 0x412536
mov ecx, dword [ecx + 4]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
cmp eax, vtable.ATL::CWin32Heap.0
jne 0x412536
push 0
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
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.004ba87e
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00402da0
call edx
jmp 0x412016
call fcn.004c0839
mov ecx, edx
call dword [ebp - 0x234]
jmp 0x41245b
mov ecx, edx
call dword [ebp - 0x234]
jmp 0x41245b
mov ecx, edx
call dword [ebp - 0x234]
jmp 0x41245b
mov ecx, edx
call dword [ebp - 0x234]
jmp 0x41245b
mov ecx, edx
call dword [ebp - 0x234]
jmp 0x41245b
mov ecx, edx
call dword [ebp - 0x234]
jmp 0x41245b
mov ecx, edx
call dword [ebp - 0x234]
jmp 0x41245b
mov ecx, edx
call dword [ebp - 0x234]
jmp 0x41245b
call edx
jmp 0x41249d