Function at 0x404da0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f894e
mov eax, dword fs:[0]
push eax
sub esp, 0x1a8
mov eax, dword [0x525008]
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 esi, dword [ebp + 8]
call fcn.00405820
mov ecx, esi
call fcn.00421b60
test al, al
je 0x40575a
mov dword [ebp - 0x2c], 0
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.00403840
mov esi, eax
cmp dword [esi + 0x14], 8
jb 0x404e09
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 0x40575a
push 0x526ef0
push eax
call fcn.004f6690
add esp, 8
mov edi, eax
mov dword [ebp - 0x17c], edi
test edi, edi
je 0x40575a
cmp dword [esi + 0x14], 8
jb 0x404e4f
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 0x404e72
push edi
call fcn.004f668b
add esp, 4
jmp 0x40575a
mov dword [ebp - 0x168], 0
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x168]
push eax
push 0x50b5d4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x404eba
mov eax, dword [ebp - 0x168]
test eax, eax
je 0x404eba
cmp dword [ebp - 0x1c], 0x34
jne 0x404eba
push 0x34
push eax
push ebx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
xorps xmm0, xmm0
movq qword [ebp - 0x28], xmm0
mov dword [ebp - 0x20], 0
xor eax, eax
mov dword [ebp - 0x178], 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 0x50b5d8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40574a
cmp dword [ebp - 0x16c], esi
je 0x40574a
xor edi, edi
test dword [ebp - 0x1c], 0xfffffffc
jbe 0x404fea
nop dword [eax]
mov eax, dword [ebp - 0x16c]
lea ecx, [eax + edi*4]
cmp dword [ebp - 0x174], esi
je 0x404f5a
mov edx, esi
call fcn.00401f80
mov ecx, dword [ecx]
mov dword [eax], ecx
add esi, 4
mov dword [ebp - 0x24], esi
mov ecx, dword [ebp - 0x174]
jmp 0x404f79
push ecx
push esi
lea ecx, [ebp - 0x28]
call fcn.00405b70
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x174], ecx
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x178], eax
mov eax, dword [ebp - 0x16c]
cmp word [eax + edi*4], 0
jne 0x404fdb
mov eax, dword [eax + edi*4]
mov dword [ebp - 0x170], eax
mov eax, 0x409
mov word [ebp - 0x170], ax
cmp ecx, esi
je 0x404fb6
mov edx, esi
call fcn.00401f80
mov ecx, dword [ebp - 0x170]
mov dword [eax], ecx
add esi, 4
mov dword [ebp - 0x24], esi
jmp 0x404fdb
lea eax, [ebp - 0x170]
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00405b70
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x174], eax
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x178], eax
inc edi
mov eax, dword [ebp - 0x1c]
shr eax, 2
cmp edi, eax
jb 0x404f30
mov edx, dword [ebp - 0x178]
mov dword [ebp - 0x1b0], edx
cmp edx, esi
je 0x4056dd
lea edi, [ebx + 0x34]
mov dword [ebp - 0x180], edi
lea eax, [ebx + 0x4c]
mov dword [ebp - 0x170], eax
lea eax, [ebx + 0x64]
mov dword [ebp - 0x1ac], eax
lea eax, [ebx + 0x7c]
mov dword [ebp - 0x1a8], eax
lea eax, [ebx + 0x94]
mov dword [ebp - 0x1a4], eax
lea eax, [ebx + 0xac]
mov dword [ebp - 0x1a0], eax
lea eax, [ebx + 0xc4]
mov dword [ebp - 0x19c], eax
lea eax, [ebx + 0xdc]
mov dword [ebp - 0x198], eax
lea eax, [ebx + 0xf4]
mov dword [ebp - 0x194], eax
lea eax, [ebx + 0x10c]
mov dword [ebp - 0x190], eax
lea eax, [ebx + 0x124]
mov dword [ebp - 0x18c], eax
lea eax, [ebx + 0x13c]
mov dword [ebp - 0x188], eax
lea ecx, [ebp - 0x44]
call fcn.00403810
mov byte [ebp - 4], 3
movzx eax, word [edx + 2]
push eax
movzx eax, word [edx]
push eax
push str.StringFileInfo_04x_04x_
mov eax, ecx
push eax
call fcn.0041cbb0
push str.CompanyName
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x5c]
call fcn.00405d60
add esp, 0x14
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00403760
test al, al
je 0x405115
lea ecx, [ebp - 0x5c]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x4050d6
mov eax, dword [eax]
lea ecx, [ebp - 0x1c]
push ecx
lea ecx, [ebp - 0x168]
push ecx
push eax
mov ebx, dword [ebp - 0x17c]
push ebx
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
call edi
test eax, eax
je 0x405121
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40511b
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x180]
call fcn.00403930
jmp 0x40511b
mov ebx, dword [ebp - 0x17c]
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0x50b658
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x74]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x170]
call fcn.00403760
test al, al
je 0x405188
lea ecx, [ebp - 0x74]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x405157
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 0x405188
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x405188
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x170]
call fcn.00403930
push 0x50b678
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x8c]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x1ac]
call fcn.00403760
test al, al
je 0x4051fb
lea ecx, [ebp - 0x8c]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x4051c4
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 0x405201
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x4051fb
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x1ac]
call fcn.00403930
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0x50b690
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xa4]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x1a8]
call fcn.00403760
test al, al
je 0x40526e
lea ecx, [ebp - 0xa4]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x40523d
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 0x40526e
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40526e
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x1a8]
call fcn.00403930
push 0x50b6ac
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xbc]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1a4]
call fcn.00403760
test al, al
je 0x4052e1
lea ecx, [ebp - 0xbc]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x4052aa
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 0x4052e7
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x4052e1
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x1a4]
call fcn.00403930
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push str.OriginalFileName
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xd4]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x1a0]
call fcn.00403760
test al, al
je 0x405354
lea ecx, [ebp - 0xd4]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x405323
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 0x405354
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x405354
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x1a0]
call fcn.00403930
push 0x50b6f0
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0xec]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x19c]
call fcn.00403760
test al, al
je 0x4053c7
lea ecx, [ebp - 0xec]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x405390
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 0x4053cd
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x4053c7
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x19c]
call fcn.00403930
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push 0x50b708
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x104]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x198]
call fcn.00403760
test al, al
je 0x40543a
lea ecx, [ebp - 0x104]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x405409
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 0x40543a
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x40543a
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x198]
call fcn.00403930
push 0x50b728
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x11c]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x194]
call fcn.00403760
test al, al
je 0x4054ad
lea ecx, [ebp - 0x11c]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x405476
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 0x4054b3
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x4054ad
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x194]
call fcn.00403930
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push str.LegalTrademarks
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x134]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 0xd
mov ecx, dword [ebp - 0x190]
call fcn.00403760
test al, al
je 0x405520
lea ecx, [ebp - 0x134]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x4054ef
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 0x405520
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x405520
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x190]
call fcn.00403930
push str.PrivateBuild
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x14c]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 0xe
mov ecx, dword [ebp - 0x18c]
call fcn.00403760
test al, al
je 0x405593
lea ecx, [ebp - 0x14c]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x40555c
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 0x405599
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x405593
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x18c]
call fcn.00403930
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
push str.SpecialBuild
lea edx, [ebp - 0x44]
lea ecx, [ebp - 0x164]
call fcn.00405d60
add esp, 4
mov byte [ebp - 4], 0xf
mov ecx, dword [ebp - 0x188]
call fcn.00403760
test al, al
je 0x405606
lea ecx, [ebp - 0x164]
call fcn.00403840
cmp dword [eax + 0x14], 8
jb 0x4055d5
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 0x405606
mov edi, dword [ebp - 0x168]
test edi, edi
je 0x405606
mov ecx, edi
call fcn.00403ba0
push eax
push edi
mov ecx, dword [ebp - 0x188]
call fcn.00403930
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x164]
call fcn.004037b0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14c]
call fcn.004037b0
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x134]
call fcn.004037b0
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x11c]
call fcn.004037b0
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x104]
call fcn.004037b0
mov byte [ebp - 4], 9
lea ecx, [ebp - 0xec]
call fcn.004037b0
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xd4]
call fcn.004037b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0xbc]
call fcn.004037b0
mov byte [ebp - 4], 6
lea ecx, [ebp - 0xa4]
call fcn.004037b0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.004037b0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x74]
call fcn.004037b0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.004037b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.004037b0
mov edx, dword [ebp - 0x1b0]
add edx, 4
mov dword [ebp - 0x1b0], edx
cmp edx, esi
mov edi, dword [ebp - 0x180]
jne 0x405082
push dword [ebp - 0x17c]
call fcn.004f668b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x178]
test edx, edx
je 0x405746
mov ecx, dword [ebp - 0x174]
sub ecx, edx
and ecx, 0xfffffffc
mov eax, edx
cmp ecx, 0x1000
jb 0x405727
add ecx, 0x23
mov edx, dword [edx - 4]
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x405727
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.004f6432
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov al, 1
jmp 0x40575c
push edi
call fcn.004f668b
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.004f63f1
mov esp, ebp
pop ebp
ret 4