Function at 0x4611f0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x5365f0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x46121c
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x461248
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
push ebx
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
mov dword [ebp - 0x118], ebx
test ebx, ebx
je 0x46129a
mov ecx, dword [ebp - 0x114]
push ebx
push ecx
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x461293
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea edx, [ebp - 0x11c]
push edx
lea eax, [ebp - 0x110]
push eax
push str.VarFileInfoTranslation
push ebx
call esi
test eax, eax
jne 0x4612af
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop ebx
mov eax, 0xfffffffe
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d5564
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x110]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push 0x505a0c
push ecx
push edx
lea eax, [ebp - 0x104]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
push ebx
call esi
test eax, eax
je 0x461368
mov ecx, dword [edi + 0x3c]
push ecx
call fcn.004d632b
mov eax, dword [ebp - 0x108]
add esp, 4
mov dword [edi + 0x3c], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461310
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4853
push esi
push 0
push eax
mov dword [edi + 0x3c], eax
call fcn.00401020
mov eax, dword [ebp - 0x108]
mov ecx, dword [edi + 0x3c]
push eax
push esi
push ecx
call fcn.004d72e3
mov eax, dword [edi + 0x3c]
add esp, 0x1c
call fcn.00461080
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x110]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push 0x5197f8
push edx
push eax
lea ecx, [ebp - 0x104]
push str.StringFileInfo_04x_04x_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x104]
push ecx
push ebx
call esi
test eax, eax
je 0x461402
mov eax, dword [ebp - 0x108]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4613b6
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4853
mov ecx, dword [ebp - 0x108]
push ecx
push esi
push eax
mov dword [edi + 0x40], eax
call fcn.004d72e3
mov eax, dword [edi + 0x40]
add esp, 0x10
call fcn.00461080
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x110]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push 0x51981c
push edx
push eax
lea ecx, [ebp - 0x104]
push str.StringFileInfo_04x_04x_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x104]
push ecx
push ebx
call esi
test eax, eax
je 0x4614df
mov edx, dword [edi + 0x44]
push edx
call fcn.004d632b
mov eax, dword [ebp - 0x108]
add esp, 4
mov dword [edi + 0x44], 0
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x461467
sub eax, edx
sar eax, 1
lea esi, [eax + 1]
cmp esi, 0x33
jbe 0x461483
mov esi, 0x33
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d4853
push esi
push 0
push eax
mov dword [edi + 0x44], eax
call fcn.00401020
mov eax, dword [ebp - 0x108]
mov ecx, dword [edi + 0x44]
lea ebx, [esi - 1]
push ebx
push eax
push esi
push ecx
call fcn.004d57db
mov edx, dword [edi + 0x44]
xor eax, eax
mov word [edx + esi*2 - 2], ax
mov eax, dword [edi + 0x44]
add esp, 0x20
mov esi, ebx
call fcn.00461080
mov ebx, dword [ebp - 0x118]
mov esi, dword [sym.imp.VERSION.dll_VerQueryValueW]
mov eax, dword [ebp - 0x110]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push 0x519834
push ecx
push edx
lea eax, [ebp - 0x104]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x10c]
push ecx
lea edx, [ebp - 0x108]
push edx
lea eax, [ebp - 0x104]
push eax
push ebx
call esi
test eax, eax
je 0x461591
mov ecx, dword [edi + 0x48]
push ecx
call fcn.004d632b
mov eax, dword [ebp - 0x10c]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
mov dword [edi + 0x48], 0
neg ecx
or ecx, eax
push ecx
call fcn.004d4853
mov ecx, dword [ebp - 0x10c]
lea edx, [ecx + ecx + 2]
push edx
push 0
push eax
mov dword [edi + 0x48], eax
call fcn.004da450
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x108]
mov edx, dword [edi + 0x48]
push eax
push ecx
inc eax
push eax
push edx
call fcn.004d57db
mov esi, dword [ebp - 0x10c]
mov eax, dword [edi + 0x48]
add esp, 0x24
call fcn.00461080
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
pop ebx
xor ecx, ebp
mov eax, 1
pop esi
call fcn.004d5564
mov esp, ebp
pop ebp
ret