Function at 0x43efb0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
mov dword [0x53de3c], eax
mov dword [0x53de40], eax
mov dword [0x53de44], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push edi
mov edi, ecx
mov dword [0x53de48], eax
test edi, edi
jne 0x43eff7
lea eax, [ebp - 0xc]
push eax
push 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call ebx
jmp 0x43f0ba
cmp byte [edi], al
jne 0x43f02c
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call ebx
mov dword [ebp - 8], eax
test esi, esi
je 0x43f0b4
jmp 0x43f0a8
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
mov ebx, eax
cmp ebx, 1
jle 0x43efdb
push 2
push ebx
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
jne 0x43f06d
lea eax, [ebp - 0xc]
push eax
push 0
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call ebx
jmp 0x43f0b4
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
cmp eax, ebx
je 0x43f08f
push esi
call fcn.004998ec
add esp, 4
jmp 0x43f054
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
call ebx
mov dword [ebp - 8], eax
push esi
call fcn.004998ec
mov eax, dword [ebp - 8]
add esp, 4
mov esi, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
test eax, eax
je 0x43f1f5
push eax
call fcn.00499907
add esp, 4
mov dword [ebp - 8], eax
test eax, eax
je 0x43f1f7
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0
test edi, edi
je 0x43f152
cmp byte [edi], 0
jne 0x43f106
push 2
push 1
call fcn.0049570f
add esp, 8
mov esi, eax
jmp 0x43f154
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call esi
mov dword [ebp - 0x10], eax
cmp eax, 1
jle 0x43f152
push 2
push eax
call fcn.0049570f
mov esi, eax
add esp, 8
test esi, esi
je 0x43f152
push dword [ebp - 0x10]
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call eax
cmp eax, dword [ebp - 0x10]
je 0x43f154
push esi
call fcn.004998ec
add esp, 4
xor esi, esi
cmp dword [ebp - 0x18], 0
je 0x43f167
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp - 8]
jmp 0x43f17b
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
push edi
push eax
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov dword [ebp - 0x14], eax
call ebx
mov ebx, eax
test esi, esi
je 0x43f18c
push esi
call fcn.004998ec
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [ebp - 0x14], 0
je 0x43f1f0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
push 0x4ce338
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x43f1f0
cmp dword [ebp - 0x1c], 0
je 0x43f1f0
mov ecx, dword [ebp - 0x20]
cmp dword [ecx], 0xfeef04bd
jne 0x43f1f0
movzx eax, word [ecx + 0xa]
mov dword [0x53de3c], eax
movzx eax, word [ecx + 8]
mov dword [0x53de40], eax
movzx eax, word [ecx + 0xe]
mov dword [0x53de44], eax
movzx eax, word [ecx + 0xc]
mov dword [0x53de48], eax
mov dword [0x53de4c], 0x53de3c
mov eax, dword [ebp - 8]
jmp 0x43f1f7
xor eax, eax
push eax
call fcn.004998ec
mov eax, dword [0x53de4c]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret