Function at 0x5138d40
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x522ac0e
mov eax, dword fs:[0]
push eax
sub esp, 0x478
mov eax, dword [0x53f3c3c]
xor eax, esp
mov dword [esp + 0x474], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x53f3c3c]
xor eax, esp
push eax
lea eax, [esp + 0x48c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4a8]
mov edi, dword [esp + 0x49c]
mov ebp, dword [esp + 0x4a0]
mov esi, dword [esp + 0x4a4]
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x34], esp
push 0x52c722a
mov dword [esp + 0x4c], edi
mov dword [esp + 0x64], ebp
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], eax
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [esp + 0x4b0], 0
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x4c], esp
push 0x52c722a
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov byte [esp + 0x4cc], 1
push 0x55a05d0
mov dword [esp + 0x4d0], 0xffffffff
lea ecx, [esp + 0x88]
call fcn.051aef90
mov ebx, 2
mov dword [esp + 0x494], ebx
cmp dword [0x55bb21c], 0
jne 0x5139000
cmp dword [0x55bb218], 0
jne 0x5139000
cmp dword [0x55bb214], 0
jne 0x5139000
cmp dword [0x55bb210], 0
jne 0x5139000
mov eax, dword [0x53f4c94]
mov ebp, 0x10
cmp dword [0x53f4ca8], ebp
jae 0x5138e55
mov eax, 0x53f4c94
lea ecx, [esp + 0x3c]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x5139034
push edi
lea ecx, [esp + 0x20]
call fcn.0509ee40
mov byte [esp + 0x494], 3
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x5138e99
mov byte [esp + 0x494], bl
lea ecx, [esp + 0x1c]
call fcn.0509ee80
jmp 0x5139034
mov eax, dword [0x53f4c94]
cmp dword [0x53f4ca8], ebp
jae 0x5138eab
mov eax, 0x53f4c94
mov edx, dword [esp + 0x3c]
push esi
push edi
push edx
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x5138e84
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x44]
push ecx
push str.VarFileInfoTranslation
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x5138e84
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x38]
push eax
push 0x529230c
xor ebp, ebp
push esi
mov dword [esp + 0x48], ebp
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x5138e84
mov eax, dword [esp + 0x34]
movzx ecx, word [eax + 0xa]
movzx edx, word [eax + 8]
mov edi, dword [sym.imp.MSVCR90.dll_sprintf]
mov dword [0x55bb21c], ecx
movzx ecx, word [eax + 0xe]
mov dword [0x55bb218], edx
movzx edx, word [eax + 0xc]
mov eax, dword [esp + 0x40]
mov dword [esp + 0x14], ebp
mov dword [0x55bb214], ecx
movzx ecx, word [eax + 2]
mov dword [0x55bb210], edx
movzx edx, word [eax]
push ecx
push edx
lea eax, [esp + 0x90]
push str.StringFileInfo_04x_04xComments
push eax
call edi
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x90]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x5138e84
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, 0x53f4c74
call dword [0x523a2ec]
mov eax, dword [0x55bb210]
cmp eax, ebp
jne 0x5138faa
mov edx, dword [0x55bb214]
mov eax, dword [0x55bb218]
mov ecx, dword [0x55bb21c]
push edx
push eax
push ecx
lea edx, [esp + 0x94]
push str.META_DLL_v_u._u._02u
push edx
call edi
add esp, 0x14
jmp 0x5138fd1
mov ecx, dword [0x55bb218]
mov edx, dword [0x55bb21c]
push eax
mov eax, dword [0x55bb214]
push eax
push ecx
push edx
lea eax, [esp + 0x98]
push str.META_DLL_v_u._u._02u._02u
push eax
call edi
add esp, 0x18
lea ecx, [esp + 0x88]
push ecx
mov ecx, 0x53f4c58
call dword [0x523a2ec]
mov byte [esp + 0x494], bl
lea ecx, [esp + 0x1c]
call fcn.0509ee80
mov esi, dword [esp + 0x28]
mov ebp, dword [esp + 0x44]
mov edi, dword [esp + 0x2c]
test edi, edi
je 0x513900c
mov edx, dword [0x55bb21c]
mov dword [edi], edx
test ebp, ebp
je 0x5139018
mov eax, dword [0x55bb218]
mov dword [ebp], eax
test esi, esi
je 0x5139024
mov ecx, dword [0x55bb214]
mov dword [esi], ecx
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5139034
mov edx, dword [0x55bb210]
mov dword [eax], edx
mov dword [esp + 0x494], 0xffffffff
lea ecx, [esp + 0x4c]
call fcn.051af090
mov ecx, dword [esp + 0x48c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.0520b902
add esp, 0x484
ret 0x10