Function at 0x480cc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x58cfe0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x2c]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x24]
push edi
mov edi, dword [ebp + 0x34]
mov dword [ebp - 0x240], edi
mov edi, dword [ebp + 0x3c]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x214], edi
mov edi, dword [ebp + 0x44]
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x23c], esi
mov esi, dword [ebp + 0x30]
mov dword [ebp - 0x21c], edi
mov edi, dword [ebp + 0x48]
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x234], edx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x238], edi
je 0x480d5c
cmp dword [ebp + 0x10], 0
jle 0x480d5c
mov edi, dword [ebp - 0x228]
xor esi, esi
mov word [edi], si
mov esi, dword [ebp - 0x224]
cmp dword [ebp - 0x22c], 0
mov edi, dword [ebp - 0x21c]
je 0x480d88
cmp dword [ebp + 0x18], 0
jle 0x480d88
mov edi, dword [ebp - 0x22c]
xor edx, edx
mov word [edi], dx
mov edx, dword [ebp - 0x234]
mov edi, dword [ebp - 0x21c]
test ecx, ecx
je 0x480d97
xor edi, edi
mov word [ecx], di
mov edi, dword [ebp - 0x21c]
test eax, eax
je 0x480da0
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x23c]
test eax, eax
je 0x480db5
cmp dword [ebp + 0x28], 0
jle 0x480db5
xor ecx, ecx
mov word [eax], cx
test edx, edx
je 0x480dbf
mov dword [edx], 0
test esi, esi
je 0x480dc8
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x480ddd
cmp dword [ebp + 0x38], 0
jle 0x480ddd
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp - 0x214]
test eax, eax
je 0x480df2
cmp dword [ebp + 0x40], 0
jle 0x480df2
xor ecx, ecx
mov word [eax], cx
test edi, edi
je 0x480dfb
xor eax, eax
mov word [edi], ax
mov eax, dword [ebp - 0x238]
test eax, eax
je 0x480e0a
xor ecx, ecx
mov word [eax], cx
test ebx, ebx
je 0x4811e3
cmp word [ebx], 0
je 0x4811e3
push 0
push ebx
call fcn.00415760
add esp, 8
test eax, eax
je 0x4811e3
lea eax, [ebp - 0x20c]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x4811e3
push esi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
test edi, edi
je 0x4811e3
push edi
push esi
push dword [ebp - 0x20c]
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
movups xmm0, xmmword [str.VarFileInfoTranslation]
mov ax, word [0x54efbc]
xor ebx, ebx
mov word [ebp - 0x1d4], ax
lea eax, [ebp - 0x208]
push eax
movups xmmword [ebp - 0x204], xmm0
lea eax, [ebp - 0x218]
movups xmm0, xmmword [0x54ef9c]
push eax
lea eax, [ebp - 0x204]
movups xmmword [ebp - 0x1f4], xmm0
push eax
movups xmm0, xmmword [0x54efac]
push edi
movups xmmword [ebp - 0x1e4], xmm0
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4811b6
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x480edf
mov word [eax], cx
mov edx, dword [ebp - 0x238]
test edx, edx
je 0x480ef1
mov eax, ecx
shr eax, 0x10
mov word [edx], ax
mov eax, ecx
shr eax, 0x10
push eax
movzx eax, cx
push eax
lea eax, [ebp - 0x204]
push str.StringFileInfo_04x_04x_
push eax
call fcn.00405510
mov ebx, dword [ebp - 0x228]
add esp, 0x10
test ebx, ebx
je 0x480f75
push 0x54eff4
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push str._s_s
push eax
call fcn.00405510
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x480f75
cmp dword [ebp - 0x208], 0
je 0x480f75
push 0
push dword [ebp - 0x210]
push dword [ebp + 0x10]
push ebx
call fcn.004823d0
add esp, 0x10
push 0x54f018
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push str._s_s
push eax
call fcn.00405510
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x480fdb
cmp dword [ebp - 0x208], 0
je 0x480fdb
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x480fdb
push 0
push dword [ebp - 0x210]
push dword [ebp + 0x18]
push eax
call fcn.004823d0
add esp, 0x10
mov esi, dword [ebp - 0x23c]
test esi, esi
je 0x481041
push 0x54f038
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push str._s_s
push eax
call fcn.00405510
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x481041
cmp dword [ebp - 0x208], 0
je 0x481041
push 0
push dword [ebp - 0x210]
push dword [ebp + 0x28]
push esi
call fcn.004823d0
add esp, 0x10
mov ebx, dword [ebp - 0x240]
test ebx, ebx
je 0x4810a7
push str.OriginalFilename
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push str._s_s
push eax
call fcn.00405510
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4810a7
cmp dword [ebp - 0x208], 0
je 0x4810a7
push 0
push dword [ebp - 0x210]
push dword [ebp + 0x38]
push ebx
call fcn.004823d0
add esp, 0x10
mov ebx, dword [ebp - 0x214]
test ebx, ebx
je 0x48110d
push 0x54f074
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x104]
push str._s_s
push eax
call fcn.00405510
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x48110d
cmp dword [ebp - 0x208], 0
je 0x48110d
push 0
push dword [ebp - 0x210]
push dword [ebp + 0x40]
push ebx
call fcn.004823d0
add esp, 0x10
cmp dword [ebp - 0x234], 0
mov ebx, dword [ebp - 0x230]
mov esi, dword [ebp - 0x220]
jne 0x481133
cmp dword [ebp - 0x224], 0
jne 0x481133
test ebx, ebx
jne 0x481133
test esi, esi
je 0x4811b1
lea eax, [ebp - 0x208]
mov dword [ebp - 0x104], 0x5c
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x104]
push eax
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4811b1
cmp dword [ebp - 0x208], 0
je 0x4811b1
mov ecx, dword [ebp - 0x234]
mov edx, dword [ebp - 0x214]
test ecx, ecx
je 0x48117a
mov eax, dword [edx + 8]
mov dword [ecx], eax
cmp dword [ebp - 0x224], 0
je 0x48119b
movzx ecx, byte [edx + 0x12]
movzx eax, byte [edx + 0x10]
shl cx, 8
or cx, ax
mov eax, dword [ebp - 0x224]
mov word [eax], cx
test ebx, ebx
je 0x4811a6
mov ax, word [edx + 0x12]
mov word [ebx], ax
test esi, esi
je 0x4811b1
mov ax, word [edx + 0x10]
mov word [esi], ax
mov ebx, 1
mov esi, dword [sym.imp.KERNEL32.dll_GlobalHandle]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00507257
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00507257
mov esp, ebp
pop ebp
ret