Function at 0x40a2e0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58584d
mov eax, dword fs:[0]
push eax
sub esp, 0x250
mov eax, dword [0x5fcfe4]
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 eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x25c], eax
mov dword [ebp - 0x228], eax
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x24c], 0
call fcn.0041b1fd
mov edi, eax
test edi, edi
je 0x40a77f
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
mov esi, dword [ebp - 0x228]
add eax, 0x10
mov dword [esi], eax
mov dword [ebp - 4], 0
push ebx
mov dword [ebp - 0x24c], 1
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
mov byte [ebp - 0x219], 0
mov dword [ebp - 0x248], ebx
test ebx, ebx
jne 0x40a3b0
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
mov dword [ebp - 0x248], ebx
test ebx, ebx
je 0x40a75f
mov byte [ebp - 0x219], 1
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00560250
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x40a74f
lea eax, [ebp - 0x244]
mov dword [ebp - 0x244], 0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
je 0x40a749
push esi
call fcn.00419c42
mov ebx, eax
add esp, 4
mov dword [ebp - 0x258], ebx
test ebx, ebx
je 0x40a789
push ebx
push esi
push dword [ebp - 0x244]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x40a73a
call fcn.0041b1fd
mov edi, eax
test edi, edi
je 0x40a78e
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
add eax, 0x10
mov dword [ebp - 0x22c], eax
lea eax, [ebp - 0x230]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x250]
mov dword [ebp - 0x234], 0
push eax
push str.VarFileInfoTranslation
push ebx
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x23c], 0
mov dword [ebp - 0x240], 0
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a4c9
mov eax, dword [ebp - 0x250]
movzx esi, word [eax]
movzx eax, word [eax + 2]
shl esi, 0x10
or esi, eax
jmp 0x40a4ce
mov esi, 0x40904b0
push esi
lea eax, [ebp - 0x22c]
push str.StringFileInfo_08xProductVersion
push eax
call fcn.0040aeb0
add esp, 0xc
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 0x22c]
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a591
mov ecx, dword [ebp - 0x230]
xor edx, edx
mov eax, dword [ebp - 0x220]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40a521
sub ecx, edx
mov edi, 0x46
mov edx, dword [ebp - 0x220]
sar ecx, 1
sub edi, ecx
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40a540
sub edx, ecx
mov eax, 0
sar edx, 1
mov ecx, 0x14
push 0x5dd330
sub ecx, edx
cmovns eax, ecx
push eax
push dword [ebp - 0x220]
xor eax, eax
test edi, edi
push 0x5dd330
cmovns eax, edi
push eax
lea eax, [ebp - 0x218]
push eax
push str.___s__s_Product_version:__s__s
push dword [ebp - 0x228]
call fcn.0040aeb0
add esp, 0x20
push esi
lea eax, [ebp - 0x22c]
push str.StringFileInfo_08xFileVersion
push eax
call fcn.0040aeb0
mov edi, dword [ebp - 0x22c]
lea eax, [ebp - 0x230]
add esp, 0xc
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a61a
push 0x5dd2bc
push dword [ebp - 0x220]
call fcn.00566e7d
add esp, 8
test eax, eax
je 0x40a5e8
cmp word [eax], 0x2c
mov eax, str._d__d__d__d
je 0x40a5ed
mov eax, str._d._d._d._d
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x238]
push ecx
lea ecx, [ebp - 0x23c]
push ecx
lea ecx, [ebp - 0x240]
push ecx
push eax
push dword [ebp - 0x220]
call fcn.0040a990
add esp, 0x18
jmp 0x40a666
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x254]
push eax
push 0x5dd32c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40a666
mov ecx, dword [ebp - 0x254]
movzx eax, word [ecx + 0xa]
mov dword [ebp - 0x240], eax
movzx eax, word [ecx + 8]
mov dword [ebp - 0x23c], eax
movzx eax, word [ecx + 0xe]
mov dword [ebp - 0x238], eax
movzx eax, word [ecx + 0xc]
mov dword [ebp - 0x234], eax
call fcn.0041b1fd
mov dword [ebp - 0x224], eax
test eax, eax
je 0x40a798
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x597998]
mov ecx, dword [ebp - 0x224]
call esi
add eax, 0x10
mov dword [ebp - 0x224], eax
mov byte [ebp - 4], 2
lea eax, [ebp - 0x224]
push dword [ebp - 0x234]
push dword [ebp - 0x238]
push dword [ebp - 0x23c]
push dword [ebp - 0x240]
push str.File_version:__d__d__d__d_r_n
push eax
call fcn.0040aeb0
mov esi, dword [ebp - 0x224]
add esp, 0x18
mov ecx, dword [ebp - 0x228]
push dword [esi - 0xc]
push esi
call fcn.0040a7b0
or edx, 0xffffffff
mov byte [ebp - 4], 1
add esi, 0xfffffff0
mov eax, edx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x40a712
lfence
mov ebx, dword [esi]
push esi
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, ebx
call esi
mov ebx, dword [ebp - 0x258]
or edx, 0xffffffff
mov byte [ebp - 4], 0
lea ecx, [edi - 0x10]
lock xadd dword [ecx + 0xc], edx
dec edx
test edx, edx
jg 0x40a73a
lfence
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x597998]
mov ecx, edi
call esi
push ebx
call fcn.00419c3d
mov ebx, dword [ebp - 0x248]
add esp, 4
mov esi, dword [ebp - 0x228]
cmp byte [ebp - 0x219], 0
je 0x40a75f
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 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.0055d0aa
mov esp, ebp
pop ebp
ret 8
push 0x80004005
call fcn.0040b400
call fcn.0041bd2e
push 0x80004005
call fcn.0040b400
push 0x80004005
call fcn.0040b400
int3