Function at 0x47b538
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00404f0c
xor eax, eax
push ebp
push 0x47b842
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x47b800
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404b08
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
call fcn.00404f1c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x47b7f6
mov eax, dword [ebp - 0x10]
call fcn.00402e48
mov ebx, eax
push ebx
mov eax, dword [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00404f1c
push eax
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
push 0x47b854
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x47b7ec
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x47b860
call fcn.00409ee4
mov edx, dword [ebp - 0x1c]
mov eax, edi
call fcn.00404ac4
lea edx, [ebp - 0x40]
mov eax, dword [edi]
call fcn.00408c80
mov eax, dword [ebp - 0x40]
call fcn.00404f1c
mov edx, eax
mov eax, edi
call fcn.00404c68
mov eax, dword [edi]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x47b67c
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x47b68c
mov eax, edi
mov edx, 0x47b870
call fcn.00404ac4
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x47b880
call fcn.00409ee4
mov edx, dword [ebp - 0x48]
mov eax, dword [ebp - 0xc]
call fcn.00404ac4
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
call fcn.00408c80
mov eax, dword [ebp - 0x4c]
call fcn.00404f1c
mov edx, eax
mov eax, dword [ebp - 0xc]
call fcn.00404c68
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x47b722
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x47b733
mov eax, dword [ebp - 0xc]
mov edx, 0x47b870
call fcn.00404ac4
lea eax, [ebp - 0x50]
push eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 8]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0xc]
shr eax, 0x10
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov eax, dword [ebp - 0x18]
movzx eax, word [eax + 0xc]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
lea edx, [ebp - 0x3c]
mov ecx, 3
mov eax, 0x47b894
call fcn.00409ee4
mov edx, dword [ebp - 0x50]
mov eax, esi
call fcn.00404ac4
lea edx, [ebp - 0x54]
mov eax, dword [esi]
call fcn.00408c80
mov eax, dword [ebp - 0x54]
call fcn.00404f1c
mov edx, eax
mov eax, esi
call fcn.00404c68
lea edx, [ebp - 0x58]
mov eax, dword [esi]
call fcn.00408c80
mov eax, dword [ebp - 0x58]
call fcn.00404f1c
mov edx, eax
mov eax, esi
call fcn.00404c68
mov eax, dword [esi]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x47b7dc
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x47b7ec
mov eax, esi
mov edx, 0x47b870
call fcn.00404ac4
mov edx, dword [ebp - 0x10]
mov eax, ebx
call fcn.00402e7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x47b80a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47b849
lea eax, [ebp - 0x58]
mov edx, 5
call fcn.00404a94
lea eax, [ebp - 0x40]
call fcn.00404a70
lea eax, [ebp - 0x1c]
call fcn.00404a70
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404a94
ret