Function at 0x48ff9e
Capabilities:
Get file version info

Disassembly:
push ebp
lea ebp, [esp - 0x5e0]
sub esp, 0x660
mov eax, dword [0x50f130]
xor eax, ebp
mov dword [ebp + 0x5dc], eax
mov eax, dword [ebp + 0x5e8]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp + 0x5ec]
push ebx
push esi
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0x5f0]
push edi
mov dword [ebp - 0x74], eax
mov eax, dword [ebp + 0x5f4]
mov esi, 0x208
xor ebx, ebx
push esi
mov dword [ebp - 0x6c], eax
lea eax, [ebp + 0x1c6]
push ebx
push eax
mov word [ebp + 0x1c4], bx
call fcn.004be320
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp + 0x1c4]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push esi
lea eax, [ebp - 0x46]
push ebx
push eax
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x48], bx
call fcn.004be320
add esp, 0xc
push ebx
lea eax, [ebp + 0x1c4]
push eax
mov dword [ebp - 0x54], ebx
mov byte [ebp - 0x49], bl
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
mov dword [ebp - 0x50], eax
jne 0x49004f
xor al, al
jmp 0x4902bf
inc eax
push eax
call fcn.004b74d1
je 0x490057
add byte [ebx], bh
ret
pop ecx
mov dword [ebp - 0x58], eax
je 0x490048
mov eax, dword [ebp - 0x50]
inc eax
push eax
push ebx
push dword [ebp - 0x58]
call fcn.004be320
add esp, 0xc
push dword [ebp - 0x58]
lea eax, [ebp + 0x1c4]
push dword [ebp - 0x50]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4902b3
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 0x58]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4902b3
test dword [ebp - 0x60], 0xfffffffc
mov dword [ebp - 0x50], ebx
jbe 0x4902b3
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x50]
lea eax, [eax + ecx*4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x4f039c
push ecx
push eax
push str.StringFileInfo_04x_04x_s
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.004b946c
add esp, 0x18
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x48]
push eax
push dword [ebp - 0x58]
mov dword [ebp - 0x54], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x490100
cmp dword [ebp - 0x5c], ebx
ja 0x490113
mov eax, dword [ebp - 0x60]
inc dword [ebp - 0x50]
shr eax, 2
cmp dword [ebp - 0x50], eax
jb 0x4900b7
jmp 0x4902b3
push esi
lea eax, [ebp + 0x3d2]
push ebx
push eax
mov word [ebp + 0x3d0], bx
call fcn.004be320
add esp, 0xc
cmp dword [ebp - 0x5c], edi
ja 0x490133
mov edi, dword [ebp - 0x5c]
push edi
push dword [ebp - 0x54]
lea eax, [ebp + 0x3d0]
push eax
call fcn.004b857e
add esp, 0xc
cmp word [ebp + 0x3d0], bx
lea eax, [ebp + 0x3d0]
mov dword [ebp - 0x54], eax
je 0x490170
cmp word [eax], 0x2c
jne 0x490166
mov word [eax], 0x2e
mov eax, dword [ebp - 0x54]
inc eax
inc eax
mov dword [ebp - 0x54], eax
cmp word [eax], bx
jne 0x490158
lea eax, [ebp + 0x3d0]
push 0x2e
push eax
mov byte [ebp - 0x49], bl
call fcn.004b953d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4902b3
lea eax, [ebp + 0x3d0]
push eax
mov word [esi], bx
call fcn.004b84ed
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x3d0]
push 0x2e
push eax
mov word [esi], 0x2e
call fcn.004b953d
add esp, 0xc
cmp eax, ebx
je 0x4902b3
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x4901cc
cmp cx, 0x39
jbe 0x4901d0
inc eax
inc eax
jmp 0x4901bd
cmp word [eax], bx
mov dword [ebp - 0x50], eax
je 0x4902b3
cmp word [eax], 0x30
mov esi, eax
jb 0x4901f2
cmp word [esi], 0x39
ja 0x4901f2
inc esi
inc esi
cmp word [esi], 0x30
jae 0x4901e4
movzx ecx, word [esi]
cmp cx, bx
je 0x4902b3
push eax
movzx edi, cx
mov word [esi], bx
call fcn.004b84ed
push 0x2e
push dword [ebp - 0x50]
mov dword [ebp - 0x7c], eax
mov word [esi], di
call fcn.004b953d
add esp, 0xc
cmp eax, ebx
je 0x4902b3
movzx ecx, word [eax]
cmp cx, bx
je 0x4902b3
cmp cx, 0x30
jb 0x49023d
cmp cx, 0x39
jbe 0x490247
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
jne 0x490231
cmp word [eax], bx
je 0x4902b3
cmp word [eax], 0x30
mov esi, eax
jb 0x490262
cmp word [esi], 0x39
ja 0x490262
inc esi
inc esi
cmp word [esi], 0x30
jae 0x490254
push eax
mov word [esi], bx
call fcn.004b84ed
mov edi, eax
lea eax, [esi + 2]
cmp eax, ebx
pop ecx
je 0x490283
cmp word [eax], bx
je 0x490283
push eax
call fcn.004b84ed
pop ecx
jmp 0x490285
mov eax, ebx
mov ecx, dword [ebp - 0x68]
cmp ecx, ebx
je 0x490291
mov edx, dword [ebp - 0x78]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x80]
cmp ecx, ebx
je 0x49029d
mov edx, dword [ebp - 0x7c]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x74]
cmp ecx, ebx
je 0x4902a6
mov dword [ecx], edi
mov ecx, dword [ebp - 0x6c]
cmp ecx, ebx
je 0x4902af
mov dword [ecx], eax
mov byte [ebp - 0x49], 1
push dword [ebp - 0x58]
call fcn.004b88f2
mov al, byte [ebp - 0x49]
pop ecx
mov ecx, dword [ebp + 0x5dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b84de
add ebp, 0x5e0
leave
ret