Function at 0x419bc0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47cdce
mov eax, dword fs:[0]
push eax
sub esp, 0x39c
mov eax, dword [0x4ade78]
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 edi, dword [ebp + 8]
mov dword [ebp - 0x394], edi
mov dword [ebp - 0x3a8], 0
mov eax, dword [ebp + 0xc]
or ebx, 0xffffffff
cmp dword [eax - 0xc], 0
mov dword [ebp - 4], 0
jne 0x419c92
lea eax, [ebp - 0x390]
push eax
call fcn.00419820
add esp, 4
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00402970
mov edx, dword [ebp - 0x390]
add edx, 0xfffffff0
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419c53
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 0xc]
cmp dword [eax - 0xc], 0
jne 0x419c92
push 0x492004
mov ecx, edi
call fcn.00401b30
mov esi, dword [ebp + 0xc]
add esi, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [esi + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x419e91
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
jmp 0x419e91
lea ecx, [ebp - 0x3a4]
push ecx
push eax
mov dword [ebp - 0x3a4], 0
mov dword [ebp - 0x3a0], 0
mov dword [ebp - 0x39c], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
push 0x492004
lea ecx, [ebp - 0x398]
mov esi, eax
call fcn.00401b30
mov byte [ebp - 4], 2
test esi, esi
je 0x419e36
push esi
call fcn.004601e0
add esp, 4
mov dword [ebp - 0x390], eax
push eax
push esi
push dword [ebp - 0x3a4]
push dword [ebp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x419e12
mov eax, dword [0x4af2c0]
imul eax, eax
cdq
mov ecx, 0xa
idiv ecx
cmp edx, 3
jne 0x419d34
mov ebx, dword [0x4af2c0]
xor esi, esi
mov edi, ebx
inc esi
dec edi
cmp esi, 0xb4
jb 0x419d21
mov edi, dword [ebp - 0x394]
or ebx, 0xffffffff
lea eax, [ebp - 0x3a0]
push eax
lea eax, [ebp - 0x39c]
push eax
push 0x4918d4
push dword [ebp - 0x390]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x419de1
cmp dword [ebp - 0x3a0], 0
je 0x419de1
mov eax, dword [ebp - 0x39c]
mov esi, dword [0x4af2c0]
mov dword [ebp - 0x394], eax
mov eax, esi
imul eax, esi
cdq
mov ecx, 0x16
idiv ecx
cmp edx, 7
jne 0x419dab
push 4
call fcn.00460a63
mov esi, eax
call fcn.00461e71
mov dword [esi], eax
push esi
mov dword [0x4af2c0], eax
call fcn.00460a34
mov esi, dword [0x4af2c0]
add esp, 8
mov eax, dword [ebp - 0x394]
cmp dword [eax], 0xfeef04bd
jne 0x419de7
movzx esi, word [eax + 0xa]
movzx edx, word [eax + 8]
movzx ecx, word [eax + 0xe]
movzx eax, word [eax + 0xc]
push eax
push ecx
push edx
push esi
lea eax, [ebp - 0x398]
push str._d._d._d._d
push eax
call fcn.00404500
add esp, 0x18
mov esi, dword [0x4af2c0]
lea ecx, [esi + 1]
lea eax, [esi + 2]
imul eax, ecx
imul eax, esi
cdq
mov ecx, 0x12
idiv ecx
cmp edx, 4
jne 0x419e12
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_PeekNamedPipe]
push dword [ebp - 0x390]
call fcn.0046208f
add esp, 4
call fcn.0041c610
test al, al
jne 0x419e36
lea eax, [ebp - 0x38c]
push eax
call dword [sym.imp.KERNEL32.dll_GetTimeZoneInformation]
mov eax, dword [ebp - 0x398]
add eax, 0xfffffff0
push eax
call fcn.00403ee0
mov edx, dword [ebp - 0x398]
add eax, 0x10
add edx, 0xfffffff0
mov dword [edi], eax
add esp, 4
mov byte [ebp - 4], 0
lea eax, [edx + 0xc]
mov ecx, ebx
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x419e70
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp + 0xc]
add edx, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea eax, [edx + 0xc]
lock xadd dword [eax], ebx
dec ebx
test ebx, ebx
jg 0x419e91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.00461234
mov esp, ebp
pop ebp
ret