Function at 0x47e710
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x4fdaa6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
mov eax, dword [0x531d28]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x128], eax
mov dword [esp + 0x1c], ebx
call fcn.004e5159
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x140]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], ebx
call fcn.00401fd0
mov edx, dword [esp + 0x10]
mov ebp, dword [edx - 4]
mov ecx, dword [edx - 8]
mov eax, 1
sub eax, ebp
or ecx, eax
mov byte [esp + 0x134], 1
jge 0x47e797
push ebx
lea ecx, [esp + 0x14]
call fcn.00401670
mov edx, dword [esp + 0x10]
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
cmp esi, ebx
jne 0x47e805
mov esi, dword [esp + 0x13c]
push str.0.0.0.0
mov ecx, esi
call fcn.00401fd0
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e7dc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [edi - 0x10]
mov dword [esp + 0x134], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e9b1
mov ecx, dword [eax]
push eax
jmp 0x47e9ac
push esi
call fcn.004e50fe
mov edx, dword [esp + 0x14]
mov edi, eax
mov dword [esp + 0x1c], ebx
mov ecx, dword [edx - 4]
mov eax, 1
sub eax, ecx
mov ecx, dword [edx - 8]
add esp, 4
or ecx, eax
jge 0x47e837
push ebx
lea ecx, [esp + 0x14]
call fcn.00401670
mov edx, dword [esp + 0x10]
push edi
push esi
push ebx
push edx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x20]
push ecx
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test dword [esp + 0x20], 0xfffffffc
jbe 0x47e894
mov eax, dword [esp + 0x1c]
movzx edx, word [eax + 2]
movzx eax, word [eax]
push edx
push eax
lea ecx, [esp + 0x30]
push 0x502a58
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
push ecx
push edi
call sub.VERSION.dll_VerQueryValueA
mov edx, dword [esp + 0x18]
cmp edx, ebx
je 0x47e8b5
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x47e8a1
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x1c]
call fcn.00401880
push 0x502a56
push 0x502a54
lea ecx, [esp + 0x1c]
call fcn.00401920
push 0x502a50
push 0x502a4c
lea ecx, [esp + 0x1c]
call fcn.00401920
push edi
call fcn.004e50f9
mov edx, dword [esp + 0x18]
mov eax, dword [edx - 0xc]
add esp, 4
cmp eax, ebx
jne 0x47e8ff
push 7
push str.0.0.0.0
lea ecx, [esp + 0x1c]
call fcn.00401880
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx]
add ebp, 0xfffffff0
call dword [eax + 0x10]
mov edx, dword [ebp + 0xc]
cmp edx, ebx
lea ecx, [ebp + 0xc]
jl 0x47e92a
cmp eax, dword [ebp]
jne 0x47e92a
mov eax, ebp
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x47e95d
mov ecx, dword [ebp + 4]
mov edx, dword [eax]
push 1
push ecx
mov ecx, eax
call dword [edx]
cmp eax, ebx
jne 0x47e93f
jmp fcn.0041bff0
mov edx, dword [ebp + 4]
mov dword [eax + 4], edx
mov ecx, dword [ebp + 4]
inc ecx
mov edx, ecx
shr ecx, 2
lea esi, [ebp + 0x10]
lea edi, [eax + 0x10]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x13c]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x134], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47e98e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov dword [esp + 0x134], 0xffffffff
lea eax, [ebp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
test ecx, ecx
jg 0x47e9b1
mov ecx, dword [ebp]
push ebp
mov edx, dword [ecx]
call dword [edx + 4]
mov ecx, dword [esp + 0x12c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x11c]
pop ebx
call fcn.004d40be
add esp, 0x128
ret