Function at 0x40aa80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x523aee
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x55e068]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x178], ebx
mov esi, dword [ebp + 8]
call fcn.0040b530
mov ecx, esi
call fcn.0040df10
test al, al
je 0x40b469
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.004024c0
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x40aaef
mov eax, dword [esi]
lea ecx, [ebp - 0x2c]
push ecx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x184], eax
mov dword [ebp - 4], 0xffffffff
test eax, eax
je 0x40b469
push 0x560a70
push eax
call fcn.004ffc79
add esp, 8
mov edi, eax
mov dword [ebp - 0x180], edi
test edi, edi
je 0x40b469
cmp dword [esi + 0x14], 8
jb 0x40ab35
mov esi, dword [esi]
push edi
push dword [ebp - 0x184]
push dword [ebp - 0x2c]
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
jne 0x40ab58
push edi
call fcn.004ffc74
add esp, 4
jmp 0x40b469
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x168]
push eax
push 0x5428e0
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40aba0
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x40aba0
cmp dword [ebp - 0x1c], 0x34
jne 0x40aba0
push 0x34
push eax
push ebx
call fcn.00501970
add esp, 0xc
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x17c], eax
mov dword [ebp - 0x28], eax
xor esi, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x174], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 2
mov dword [ebp - 0x16c], esi
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x16c]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40b459
cmp dword [ebp - 0x16c], esi
je 0x40b459
xor edi, edi
test dword [ebp - 0x1c], 0xfffffffc
jbe 0x40ace8
nop dword [eax]
nop word [eax + eax]
mov eax, dword [ebp - 0x16c]
lea ebx, [eax + edi*4]
cmp dword [ebp - 0x174], esi
je 0x40ac4e
push esi
push 4
call fcn.00401f60
add esp, 8
mov ecx, dword [ebx]
mov dword [eax], ecx
add esi, 4
mov dword [ebp - 0x24], esi
mov ebx, dword [ebp - 0x174]
jmp 0x40ac6d
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040b810
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x174], ebx
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x17c], eax
mov eax, dword [ebp - 0x16c]
cmp word [eax + edi*4], 0
jne 0x40acd3
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x170], eax
mov eax, 0x409
mov word [ebp - 0x170], ax
cmp ebx, esi
je 0x40acae
push esi
push 4
call fcn.00401f60
add esp, 8
mov ecx, dword [ebp - 0x170]
mov dword [eax], ecx
add esi, 4
mov dword [ebp - 0x24], esi
jmp 0x40acd3
lea eax, [ebp - 0x170]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.0040b810
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x174], eax
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x17c], eax
inc edi
mov eax, dword [ebp - 0x1c]
shr eax, 2
cmp edi, eax
jb 0x40ac20
mov ebx, dword [ebp - 0x178]
mov edi, dword [ebp - 0x17c]
mov dword [ebp - 0x178], edi
cmp edi, esi
je 0x40b3f2
lea eax, [ebx + 0x34]
mov dword [ebp - 0x170], eax
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x1ac], eax
lea eax, [ebx + 0x64]
mov dword [ebp - 0x1a8], eax
lea eax, [ebx + 0x7c]
mov dword [ebp - 0x1a4], eax
lea eax, [ebx + 0x94]
mov dword [ebp - 0x1a0], eax
lea eax, [ebx + 0xac]
mov dword [ebp - 0x19c], eax
lea eax, [ebx + 0xc4]
mov dword [ebp - 0x198], eax
lea eax, [ebx + 0xdc]
mov dword [ebp - 0x194], eax
lea eax, [ebx + 0xf4]
mov dword [ebp - 0x190], eax
lea eax, [ebx + 0x10c]
mov dword [ebp - 0x18c], eax
lea eax, [ebx + 0x124]
mov dword [ebp - 0x188], eax
lea eax, [ebx + 0x13c]
mov dword [ebp - 0x1b0], eax
lea ecx, [ebp - 0x44]
call fcn.004024a0
mov byte [ebp - 4], 3
movzx eax, word [edi + 2]
push eax
movzx eax, word [edi]
push eax
push str.StringFileInfo_04x_04x_
lea eax, [ebp - 0x44]
push eax
call fcn.00414d30
push str.CompanyName
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.00407060
add esp, 0x14
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x170]
call fcn.004023f0
test al, al
je 0x40ae1a
lea ecx, [ebp - 0x5c]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40add9
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
mov ebx, dword [ebp - 0x180]
push ebx
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x40ae26
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40ae20
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x170]
call fcn.00402540
jmp 0x40ae20
mov ebx, dword [ebp - 0x180]
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0x5431bc
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x1ac]
call fcn.004023f0
test al, al
je 0x40ae8f
lea ecx, [ebp - 0x74]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40ae5c
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x40ae8f
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40ae8f
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x1ac]
call fcn.00402540
push 0x5431dc
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x8c]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1a8]
call fcn.004023f0
test al, al
je 0x40af04
lea ecx, [ebp - 0x8c]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40aecb
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x40af0a
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40af04
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x1a8]
call fcn.00402540
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0x5431f4
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1a4]
call fcn.004023f0
test al, al
je 0x40af79
lea ecx, [ebp - 0xa4]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40af46
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x40af79
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40af79
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x1a4]
call fcn.00402540
push 0x543210
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xbc]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1a0]
call fcn.004023f0
test al, al
je 0x40afee
lea ecx, [ebp - 0xbc]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40afb5
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x40aff4
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40afee
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x1a0]
call fcn.00402540
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push str.OriginalFileName
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xd4]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x19c]
call fcn.004023f0
test al, al
je 0x40b063
lea ecx, [ebp - 0xd4]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40b030
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x40b063
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40b063
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x19c]
call fcn.00402540
push 0x543254
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xec]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x198]
call fcn.004023f0
test al, al
je 0x40b0d8
lea ecx, [ebp - 0xec]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40b09f
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x40b0de
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40b0d8
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x198]
call fcn.00402540
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0x54326c
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x104]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x194]
call fcn.004023f0
test al, al
je 0x40b14d
lea ecx, [ebp - 0x104]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40b11a
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x40b14d
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40b14d
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x194]
call fcn.00402540
push 0x54328c
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x11c]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x190]
call fcn.004023f0
test al, al
je 0x40b1c2
lea ecx, [ebp - 0x11c]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40b189
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x40b1c8
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40b1c2
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x190]
call fcn.00402540
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push str.LegalTrademarks
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x134]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x18c]
call fcn.004023f0
test al, al
je 0x40b237
lea ecx, [ebp - 0x134]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40b204
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x40b237
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40b237
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x18c]
call fcn.00402540
push str.PrivateBuild
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x14c]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x188]
call fcn.004023f0
test al, al
je 0x40b2ac
lea ecx, [ebp - 0x14c]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40b273
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x40b2b2
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40b2ac
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x188]
call fcn.00402540
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push str.SpecialBuild
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x164]
call fcn.00407060
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x1b0]
call fcn.004023f0
test al, al
je 0x40b321
lea ecx, [ebp - 0x164]
call fcn.004024c0
cmp dword [eax + 0x14], 8
jb 0x40b2ee
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
push ebx
call edi
test eax, eax
je 0x40b321
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40b321
push edi
call fcn.00402710
add esp, 4
push eax
push edi
mov ecx, dword [ebp - 0x1b0]
call fcn.00402540
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x164]
call fcn.00402400
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14c]
call fcn.00402400
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x134]
call fcn.00402400
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x11c]
call fcn.00402400
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x104]
call fcn.00402400
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xec]
call fcn.00402400
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd4]
call fcn.00402400
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.00402400
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa4]
call fcn.00402400
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.00402400
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.00402400
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.00402400
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.00402400
mov edi, dword [ebp - 0x178]
add edi, 4
mov dword [ebp - 0x178], edi
cmp edi, esi
jne 0x40ad80
push dword [ebp - 0x180]
call fcn.004ffc74
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x17c]
test edx, edx
je 0x40b455
mov ecx, dword [ebp - 0x174]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x40b436
add ecx, 0x23
mov edx, dword [edx - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40b499
push ecx
push edx
call fcn.004ff563
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov al, 1
jmp 0x40b46b
push edi
call fcn.004ffc74
add esp, 4
mov dword [ebp - 4], 0xffffffff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004ff522
mov esp, ebp
pop ebp
ret 4
call fcn.00504f19
int3