Function at 0x4020d0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x5305c6
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x57c6c0]
xor eax, esp
mov dword [esp + 0x274], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x57c6c0]
xor eax, esp
push eax
lea eax, [esp + 0x28c]
mov dword fs:[0], eax
call fcn.004147ce
xor ecx, ecx
xor ebx, ebx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402127
push 0x80004005
call fcn.00404300
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x190
lea ecx, [esp + 0xfc]
push ecx
push ebx
mov dword [esp + 0x2a0], ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [esp + 0x2c]
push edx
lea eax, [esp + 0xfc]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x402176
push ebx
push ebx
push str.None_VerSion_Supprot
call fcn.00416736
push esi
call fcn.00408f3c
add esp, 4
mov edi, eax
push edi
push esi
push ebx
lea ecx, [esp + 0x104]
push ecx
call sub.VERSION.dll_GetFileVersionInfoW
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x28]
push eax
push str.VarFileInfoTranslation
push edi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_VerQueryValueA
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x40225a
mov ebp, dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x24]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push ecx
push edx
lea eax, [esp + 0x38]
push str.StringFileInfo_04x_04xFileVersion
push eax
call ebp
add esp, 0x10
lea ecx, [esp + 0x28]
push ecx
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
call sub.VERSION.dll_VerQueryValueA
mov ecx, dword [esp + 0x1c]
push ecx
lea ecx, [esp + 0x24]
call fcn.004041a0
mov byte [esp + 0x294], 1
mov eax, dword [esp + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [esp + 0x1c]
call fcn.00403800
mov byte [esp + 0x294], bl
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40224a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x18]
inc esi
shr ecx, 2
cmp esi, ecx
jb 0x4021c0
push edi
call fcn.00408f31
mov esi, dword [esp + 0x18]
mov edi, dword [0x5853dc]
add esi, 0xfffffff0
add edi, 0xfffffff0
add esp, 4
cmp esi, edi
je 0x4022c5
cmp dword [edi + 0xc], ebx
lea ebp, [edi + 0xc]
jl 0x4022b2
mov edx, dword [esi]
cmp edx, dword [edi]
jne 0x4022b2
push esi
call fcn.00404270
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [ebp], eax
dec eax
test eax, eax
jg 0x4022a7
mov ecx, dword [edi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push edi
call eax
add ebx, 0x10
mov dword [0x5853dc], ebx
jmp 0x4022c5
mov eax, dword [esp + 0x14]
mov ecx, dword [eax - 0xc]
push ecx
push eax
mov ecx, 0x5853dc
call fcn.00404090
mov dword [esp + 0x294], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4022e9
mov ecx, dword [esi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push esi
call edx
mov ecx, dword [esp + 0x28c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x274]
xor ecx, esp
call fcn.00508877
add esp, 0x284
ret