Function at 0x413870
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44089b
mov eax, dword fs:[0]
push eax
sub esp, 0x128
mov eax, dword [0x4540fc]
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 ebx, dword [ebp + 8]
mov dword [ebp - 0x11c], ebx
mov dword [ebp - 4], 1
call fcn.00409200
mov ecx, eax
test ecx, ecx
je 0x413af7
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0x118], esi
lea eax, [ebp - 0x124]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov dword [ebp - 0x114], eax
test eax, eax
jne 0x41398c
call fcn.00409200
mov ecx, eax
test ecx, ecx
je 0x413b01
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebx], eax
push 0x44b54c
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.00407d80
test al, al
jne 0x413928
push 0
push 0x44b54c
mov ecx, ebx
call fcn.00407f30
lea edx, [esi - 0x10]
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x413946
mov ecx, dword [edx]
push edx
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 0x413964
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 0x413ad7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x413ad7
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x413a70
push edi
push dword [ebp - 0x114]
push 0
push dword [ebp + 0xc]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
lea eax, [ebp - 0x128]
push eax
lea eax, [ebp - 0x12c]
push eax
push 0x44aea8
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x114]
push eax
push str.VarFileInfoTranslation
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x413a69
mov ecx, dword [ebp - 0x114]
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 - 0x134]
push eax
lea eax, [ebp - 0x11c]
push eax
lea eax, [ebp - 0x110]
push eax
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x413a69
mov edx, dword [ebp - 0x11c]
test edx, edx
jne 0x413a42
xor ecx, ecx
jmp 0x413a56
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x413a47
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x118]
call fcn.00407f30
mov esi, dword [ebp - 0x118]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
lea edi, [esi - 0x10]
mov ecx, edi
call fcn.00407e40
add eax, 0x10
mov byte [ebp - 4], 1
or esi, 0xffffffff
mov dword [ebx], eax
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x413a9a
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 0x413ab8
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 0x413ad7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
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.0042150a
mov esp, ebp
pop ebp
ret 0xc
push 0x80004005
call fcn.00408fe0
push 0x80004005
call fcn.00408fe0
int3