Function at 0x40acf0
Capabilities:
Get file version info

Disassembly:
sub esp, 0x65c
mov eax, dword [0x50f130]
xor eax, esp
mov dword [esp + 0x658], eax
mov eax, dword [esp + 0x660]
push ebx
push esi
mov esi, dword [esp + 0x670]
xor ebx, ebx
push 0x208
mov dword [esp + 0x34], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x670]
lea ecx, [esp + 0x24e]
push ebx
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], eax
mov word [esp + 0x254], bx
call fcn.004be320
add esp, 0xc
cmp esi, ebx
je 0x40ad6a
cmp word [esi], bx
je 0x40ad6a
push 0x104
push esi
lea edx, [esp + 0x250]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
jmp 0x40ad7e
push 0x104
lea eax, [esp + 0x24c]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x208
lea ecx, [esp + 0x45a]
push ebx
push ecx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebx
mov word [esp + 0x460], bx
call fcn.004be320
add esp, 0xc
push ebx
lea edx, [esp + 0x24c]
push edx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x13], bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jne 0x40adcb
xor al, al
jmp 0x40b075
push ebp
push edi
lea edi, [esi + 1]
push edi
call fcn.004b74d1
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x1c], ebp
jne 0x40adea
xor al, al
jmp 0x40b073
push edi
push ebx
push ebp
call fcn.004be320
add esp, 0xc
push ebp
push esi
push ebx
lea eax, [esp + 0x25c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x40b066
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x24]
push edx
push str.VarFileInfoTranslation
push ebp
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40b066
xor esi, esi
test dword [esp + 0x18], 0xfffffffc
jbe 0x40b066
lea ebx, [ebx]
mov eax, dword [esp + 0x20]
movzx ecx, word [eax + esi*4 + 2]
movzx edx, word [eax + esi*4]
push str.FileVersion
push ecx
push edx
push str.StringFileInfo_04x_04x_s
lea eax, [esp + 0x46c]
push 0x104
push eax
call fcn.004b946c
add esp, 0x18
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x464]
push eax
push ebp
mov dword [esp + 0x24], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40ae96
mov edi, dword [esp + 0x24]
cmp edi, ebx
ja 0x40aea9
mov ecx, dword [esp + 0x18]
add esi, 1
shr ecx, 2
cmp esi, ecx
jb 0x40ae40
jmp 0x40b066
push 0x208
lea edx, [esp + 0x4a]
push ebx
push edx
mov word [esp + 0x50], bx
call fcn.004be320
add esp, 0xc
cmp edi, 0x104
jbe 0x40aece
mov edi, 0x104
mov eax, dword [esp + 0x14]
push edi
push eax
lea ecx, [esp + 0x4c]
push ecx
call fcn.004b857e
add esp, 0xc
cmp word [esp + 0x44], bx
lea eax, [esp + 0x44]
mov dword [esp + 0x14], eax
je 0x40af0b
cmp word [eax], 0x2c
jne 0x40aeff
mov word [eax], 0x2e
mov eax, dword [esp + 0x14]
add eax, 2
mov dword [esp + 0x14], eax
cmp word [eax], bx
jne 0x40aef0
lea edx, [esp + 0x44]
push 0x2e
push edx
mov byte [esp + 0x1b], bl
call fcn.004b953d
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x40b066
lea eax, [esp + 0x44]
push eax
mov word [esi], bx
call fcn.004b84ed
lea ecx, [esp + 0x48]
push 0x2e
push ecx
mov dword [esp + 0x48], eax
mov word [esi], 0x2e
call fcn.004b953d
mov edi, eax
add esp, 0xc
cmp edi, ebx
je 0x40b066
movzx eax, word [edi]
cmp ax, 0x30
jb 0x40af66
cmp ax, 0x39
jbe 0x40af6b
add edi, 2
jmp 0x40af57
cmp word [edi], bx
je 0x40b066
cmp word [edi], 0x30
mov esi, edi
jb 0x40af8f
lea esp, [esp]
cmp word [esi], 0x39
ja 0x40af8f
add esi, 2
cmp word [esi], 0x30
jae 0x40af80
movzx eax, word [esi]
cmp ax, bx
je 0x40b066
push edi
movzx ebp, ax
mov word [esi], bx
call fcn.004b84ed
push 0x2e
push edi
mov dword [esp + 0x4c], eax
mov word [esi], bp
call fcn.004b953d
add esp, 0xc
cmp eax, ebx
je 0x40b062
movzx ecx, word [eax]
cmp cx, bx
je 0x40b062
lea ecx, [ecx]
cmp cx, 0x30
jb 0x40afdc
cmp cx, 0x39
jbe 0x40afea
movzx ecx, word [eax + 2]
add eax, 2
cmp cx, bx
jne 0x40afd0
jmp 0x40b062
cmp word [eax], bx
je 0x40b062
cmp word [eax], 0x30
mov esi, eax
jb 0x40b006
cmp word [esi], 0x39
ja 0x40b006
add esi, 2
cmp word [esi], 0x30
jae 0x40aff7
push eax
mov word [esi], bx
call fcn.004b84ed
mov edi, eax
lea eax, [esi + 2]
add esp, 4
cmp eax, ebx
je 0x40b02b
cmp word [eax], bx
je 0x40b02b
push eax
call fcn.004b84ed
add esp, 4
jmp 0x40b02d
mov eax, ebx
mov ecx, dword [esp + 0x28]
cmp ecx, ebx
je 0x40b03b
mov edx, dword [esp + 0x3c]
mov dword [ecx], edx
mov ecx, dword [esp + 0x38]
cmp ecx, ebx
je 0x40b049
mov edx, dword [esp + 0x40]
mov dword [ecx], edx
mov ecx, dword [esp + 0x2c]
cmp ecx, ebx
je 0x40b053
mov dword [ecx], edi
mov ecx, dword [esp + 0x34]
cmp ecx, ebx
je 0x40b05d
mov dword [ecx], eax
mov byte [esp + 0x13], 1
mov ebp, dword [esp + 0x1c]
push ebp
call fcn.004b88f2
mov al, byte [esp + 0x17]
add esp, 4
pop edi
pop ebp
mov ecx, dword [esp + 0x660]
pop esi
pop ebx
xor ecx, esp
call fcn.004b84de
add esp, 0x65c
ret 0xc