Function at 0x48f20b
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.004be240
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.004be240
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 0x48f2bc
xor al, al
jmp 0x48f52c
inc eax
push eax
call fcn.004b73e1
cmp eax, ebx
pop ecx
mov dword [ebp - 0x58], eax
je 0x48f2b5
mov eax, dword [ebp - 0x50]
inc eax
push eax
push ebx
push dword [ebp - 0x58]
call fcn.004be240
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 0x48f520
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 0x48f520
test dword [ebp - 0x60], 0xfffffffc
mov dword [ebp - 0x50], ebx
jbe 0x48f520
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.004b937c
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 0x48f36d
cmp dword [ebp - 0x5c], ebx
ja 0x48f380
mov eax, dword [ebp - 0x60]
inc dword [ebp - 0x50]
shr eax, 2
cmp dword [ebp - 0x50], eax
jb 0x48f324
jmp 0x48f520
push esi
lea eax, [ebp + 0x3d2]
push ebx
push eax
mov word [ebp + 0x3d0], bx
call fcn.004be240
add esp, 0xc
cmp dword [ebp - 0x5c], edi
ja 0x48f3a0
mov edi, dword [ebp - 0x5c]
push edi
push dword [ebp - 0x54]
lea eax, [ebp + 0x3d0]
push eax
call fcn.004b848e
add esp, 0xc
cmp word [ebp + 0x3d0], bx
lea eax, [ebp + 0x3d0]
mov dword [ebp - 0x54], eax
je 0x48f3dd
cmp word [eax], 0x2c
jne 0x48f3d3
mov word [eax], 0x2e
mov eax, dword [ebp - 0x54]
inc eax
inc eax
mov dword [ebp - 0x54], eax
cmp word [eax], bx
jne 0x48f3c5
lea eax, [ebp + 0x3d0]
push 0x2e
push eax
mov byte [ebp - 0x49], bl
call fcn.004b944d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x48f520
lea eax, [ebp + 0x3d0]
push eax
mov word [esi], bx
call fcn.004b83fd
mov dword [ebp - 0x78], eax
lea eax, [ebp + 0x3d0]
push 0x2e
push eax
mov word [esi], 0x2e
call fcn.004b944d
add esp, 0xc
cmp eax, ebx
je 0x48f520
movzx ecx, word [eax]
cmp cx, 0x30
jb 0x48f439
cmp cx, 0x39
jbe 0x48f43d
inc eax
inc eax
jmp 0x48f42a
cmp word [eax], bx
mov dword [ebp - 0x50], eax
je 0x48f520
cmp word [eax], 0x30
mov esi, eax
jb 0x48f45f
cmp word [esi], 0x39
ja 0x48f45f
inc esi
inc esi
cmp word [esi], 0x30
jae 0x48f451
movzx ecx, word [esi]
cmp cx, bx
je 0x48f520
push eax
movzx edi, cx
mov word [esi], bx
call fcn.004b83fd
push 0x2e
push dword [ebp - 0x50]
mov dword [ebp - 0x7c], eax
mov word [esi], di
call fcn.004b944d
add esp, 0xc
cmp eax, ebx
je 0x48f520
movzx ecx, word [eax]
cmp cx, bx
je 0x48f520
cmp cx, 0x30
jb 0x48f4aa
cmp cx, 0x39
jbe 0x48f4b4
inc eax
inc eax
movzx ecx, word [eax]
cmp cx, bx
jne 0x48f49e
cmp word [eax], bx
je 0x48f520
cmp word [eax], 0x30
mov esi, eax
jb 0x48f4cf
cmp word [esi], 0x39
ja 0x48f4cf
inc esi
inc esi
cmp word [esi], 0x30
jae 0x48f4c1
push eax
mov word [esi], bx
call fcn.004b83fd
mov edi, eax
lea eax, [esi + 2]
cmp eax, ebx
pop ecx
je 0x48f4f0
cmp word [eax], bx
je 0x48f4f0
push eax
call fcn.004b83fd
pop ecx
jmp 0x48f4f2
mov eax, ebx
mov ecx, dword [ebp - 0x68]
cmp ecx, ebx
je 0x48f4fe
mov edx, dword [ebp - 0x78]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x80]
cmp ecx, ebx
je 0x48f50a
mov edx, dword [ebp - 0x7c]
mov dword [ecx], edx
mov ecx, dword [ebp - 0x74]
cmp ecx, ebx
je 0x48f513
mov dword [ecx], edi
mov ecx, dword [ebp - 0x6c]
cmp ecx, ebx
je 0x48f51c
mov dword [ecx], eax
mov byte [ebp - 0x49], 1
push dword [ebp - 0x58]
call fcn.004b8802
mov al, byte [ebp - 0x49]
pop ecx
mov ecx, dword [ebp + 0x5dc]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004b83ee
add ebp, 0x5e0
leave
ret