Function at 0x438820
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4934a6
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4b4180]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x11c], ecx
mov esi, dword [ebp + 8]
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x120], esi
mov dword [ebp - 4], 1
call fcn.004038b0
mov ecx, eax
test ecx, ecx
je 0x438bad
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x114], edi
lea eax, [ebp - 0x130]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, eax
test ebx, ebx
jne 0x438960
call fcn.004038b0
mov ecx, eax
test ecx, ecx
je 0x438bb7
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x4a2ebc
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.004029f0
test al, al
jne 0x4388df
push ebx
push 0x4a2ebc
mov ecx, esi
call fcn.00402d20
or esi, 0xffffffff
mov byte [ebp - 4], 1
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x4388fd
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x43891b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x43893a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x118]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046b73a
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x438a39
push esi
push ebx
push 0
push dword [ebp + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebx, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x134]
push eax
lea eax, [ebp - 0x138]
push eax
push 0x4a3038
push esi
call ebx
lea eax, [ebp - 0x13c]
push eax
lea eax, [ebp - 0x124]
push eax
push str.VarFileInfoTranslation
push esi
call ebx
test eax, eax
je 0x438a32
mov ecx, dword [ebp - 0x124]
push dword [ebp + 0x10]
movzx eax, word [ecx + 2]
push eax
movzx eax, word [ecx]
push eax
lea eax, [ebp - 0x110]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x120]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
call ebx
test eax, eax
je 0x438a32
mov edx, dword [ebp - 0x120]
test edx, edx
jne 0x438a07
xor ecx, ecx
jmp 0x438a1f
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x438a10
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x114]
call fcn.00402d20
mov edi, dword [ebp - 0x114]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ebx, dword [ebp - 0x11c]
lea esi, [ebx + 0x28]
push esi
call fcn.00454b0f
add esp, 4
test eax, eax
jne 0x438ba6
cmp dword [esi + 0x2c], 0x7fffffff
lea eax, [esi + 0x2c]
jne 0x438a69
mov ecx, SysReAllocString
jmp 0x438bc2
lea eax, [ebx + 0x60]
mov dword [ebp - 0x11c], eax
mov eax, dword [eax]
push esi
mov ebx, dword [eax - 0xc]
call fcn.00454b20
add esp, 4
test ebx, ebx
jne 0x438b30
mov eax, dword [ebp + 0x10]
mov ecx, 0x4a31c4
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x438ab6
test dx, dx
je 0x438ab2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x438ab6
add eax, 4
add ecx, 4
test dx, dx
jne 0x438a90
xor eax, eax
jmp 0x438abb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x438b30
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x438b30
push str.windows_system32_svchost.exe
push eax
call fcn.0046cf83
add esp, 8
test eax, eax
je 0x438b30
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x438b30
push esi
mov dword [ebp - 0x128], esi
call fcn.00454b0f
add esp, 4
test eax, eax
jne 0x438ba6
mov ecx, dword [esi + 0x2c]
lea eax, [esi + 0x2c]
cmp ecx, 0x7fffffff
je 0x438bc1
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 4
call fcn.004031d0
push esi
mov byte [ebp - 4], 2
call fcn.00454b20
add esp, 4
add edi, 0xfffffff0
mov ecx, edi
call fcn.00402bd0
mov ebx, dword [ebp - 0x118]
add eax, 0x10
or esi, 0xffffffff
mov byte [ebp - 4], 1
mov dword [ebx], eax
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x438b60
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x438b7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x438940
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x438940
push 5
call fcn.00454d61
push 0x80004005
call fcn.00403680
push 0x80004005
call fcn.00403680
dec ecx
push 6
mov dword [eax], ecx
call fcn.00454d61
int3