Function at 0x404ee0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x648ebb
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x703eb0]
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 esi, ecx
mov dword [ebp - 0x11c], esi
mov dword [ebp - 0x114], 0
mov dword [ebp - 4], 1
call fcn.0041a80c
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x404f41
push 0x80004005
call fcn.00401090
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x118], ebx
lea ecx, [ebp - 0x124]
mov byte [ebp - 4], 2
mov edx, dword [ebp + 8]
push ecx
push edx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov edi, eax
test edi, edi
jne 0x404fea
push 0x6cbc40
mov ecx, esi
call fcn.004023d0
lea eax, [ebx - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404f9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fbd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404fe3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
jmp 0x405123
push edi
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4050a4
mov ecx, dword [ebp + 8]
push esi
push edi
push 0
push ecx
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov edi, dword [sym.imp.VERSION.dll_VerQueryValueW]
lea edx, [ebp - 0x134]
push edx
lea eax, [ebp - 0x130]
push eax
push 0x6cc1e0
push esi
call edi
lea ecx, [ebp - 0x128]
push ecx
lea edx, [ebp - 0x120]
push edx
push 0x6cc1e4
push esi
call edi
test eax, eax
je 0x40509d
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 0x120]
movzx ecx, word [eax + 2]
movzx edx, word [eax]
push ecx
push edx
lea eax, [ebp - 0x110]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
lea ecx, [ebp - 0x12c]
push ecx
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x110]
push eax
push esi
call edi
test eax, eax
je 0x40509d
mov ecx, dword [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x118]
call fcn.00402490
mov ebx, dword [ebp - 0x118]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea esi, [ebx - 0x10]
push esi
call fcn.00402be0
mov edi, dword [ebp - 0x11c]
add eax, 0x10
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 1
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x4050d8
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4050fb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405121
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
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.00521602
mov esp, ebp
pop ebp
ret 8