Function at 0x437fc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4923c6
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x4b30fc]
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.00403910
mov ecx, eax
test ecx, ecx
je 0x43834d
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 0x438100
call fcn.00403910
mov ecx, eax
test ecx, ecx
je 0x438357
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x4a1f04
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.00402a50
test al, al
jne 0x43807f
push ebx
push 0x4a1f04
mov ecx, esi
call fcn.00402d80
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 0x43809d
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 0x4380bb
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 0x4380da
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.0046a70a
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 0x4381d9
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 0x4a2080
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 0x4381d2
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 0x4381d2
mov edx, dword [ebp - 0x120]
test edx, edx
jne 0x4381a7
xor ecx, ecx
jmp 0x4381bf
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4381b0
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x114]
call fcn.00402d80
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.0045392f
add esp, 4
test eax, eax
jne 0x438346
cmp dword [esi + 0x2c], 0x7fffffff
lea eax, [esi + 0x2c]
jne 0x438209
mov ecx, SysReAllocString
jmp 0x438362
lea eax, [ebx + 0x60]
mov dword [ebp - 0x11c], eax
mov eax, dword [eax]
push esi
mov ebx, dword [eax - 0xc]
call fcn.00453954
add esp, 4
test ebx, ebx
jne 0x4382d0
mov eax, dword [ebp + 0x10]
mov ecx, 0x4a220c
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x438256
test dx, dx
je 0x438252
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x438256
add eax, 4
add ecx, 4
test dx, dx
jne 0x438230
xor eax, eax
jmp 0x43825b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4382d0
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jl 0x4382d0
push str.windows_system32_svchost.exe
push eax
call fcn.0046be07
add esp, 8
test eax, eax
je 0x4382d0
sub eax, dword [ebp + 0xc]
sar eax, 1
cmp eax, 0xffffffff
je 0x4382d0
push esi
mov dword [ebp - 0x128], esi
call fcn.0045392f
add esp, 4
test eax, eax
jne 0x438346
mov ecx, dword [esi + 0x2c]
lea eax, [esi + 0x2c]
cmp ecx, 0x7fffffff
je 0x438361
mov ecx, dword [ebp - 0x11c]
lea eax, [ebp - 0x114]
push eax
mov byte [ebp - 4], 4
call fcn.00403230
push esi
mov byte [ebp - 4], 2
call fcn.00453954
add esp, 4
add edi, 0xfffffff0
mov ecx, edi
call fcn.00402c30
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 0x438300
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 0x43831e
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 0x4380e0
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x4380e0
push 5
call fcn.0045458b
push 0x80004005
call fcn.004036e0
push 0x80004005
call fcn.004036e0
dec ecx
push 6
mov dword [eax], ecx
call fcn.0045458b
int3