Function at 0x4feda0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6ac
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [sym.imp.msvcrt.dll__strdup]
push eax
mov esi, ecx
call edi
mov ecx, dword [ebp + 0x10]
push ecx
mov ebx, eax
call edi
add esp, 8
mov edi, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], 0
test ebx, ebx
je 0x4fee01
test edi, edi
je 0x4fee01
mov edx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [esi + 0x30]
push ecx
push edi
push ebx
push 0
push edx
call eax
or eax, edx
jne 0x4fee08
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x4fee08
mov dword [ebp - 4], 8
mov eax, dword [esi]
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
cmp eax, ecx
je 0x4fef5c
cmp ebx, ecx
je 0x4fef6a
test byte [eax + 0x18], 8
je 0x4feea7
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x1c]
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
je 0x4feea7
push edi
call dword [sym.imp.msvcrt.dll_malloc]
add esp, 4
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4feea7
mov edx, dword [ebp - 0x1c]
push eax
push edi
push edx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4fee9a
lea ecx, [ebp - 0x24]
push ecx
mov ecx, dword [ebp - 0x10]
mov eax, 0x5c
lea edx, [ebp - 8]
mov word [ebp - 0xc], ax
push edx
lea eax, [ebp - 0xc]
push eax
push ecx
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4fee83
mov dword [ebp - 8], eax
jmp 0x4fee9a
mov edx, dword [ebp - 8]
mov ecx, dword [edx + 8]
mov edx, dword [edx + 0xc]
xor eax, eax
xor edi, edi
add eax, edx
adc ecx, edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 0x6ac]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, esi
mov edi, str._unknown_
call fcn.004fe690
test eax, eax
je case.default.0x4feed5
mov eax, dword [ebp - 0x68c]
cmp eax, 8
ja case.default.0x4feed5
jmp dword [eax*4 + 0x4fef84]
mov edi, str._nosymbols_
jmp case.default.0x4feed5
mov edi, str.COFF
jmp case.default.0x4feed5
mov edi, 0x61aed4
jmp case.default.0x4feed5
mov edi, 0x61aed0
jmp case.default.0x4feed5
mov edi, str._exported_
jmp case.default.0x4feed5
mov edi, str._deferred_
jmp case.default.0x4feed5
mov edi, 0x61aeb4
jmp case.default.0x4feed5
mov edi, 0x61aeb0
jmp case.default.0x4feed5
mov edi, str.Virtual
cmp byte [ebp - 0x468], 0
lea eax, [ebp - 0x568]
je 0x4fef2e
lea eax, [ebp - 0x468]
mov ecx, dword [esi]
mov esi, dword [ebp - 0x14]
mov edx, dword [ecx]
push esi
mov esi, dword [ebp - 0x18]
mov edx, dword [edx + 8]
push esi
push eax
mov eax, dword [ebp - 4]
push edi
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0xc]
push eax
call edx
mov edi, dword [ebp - 0x20]
test ebx, ebx
je 0x4fef6a
push ebx
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
test edi, edi
je 0x4fef78
push edi
call dword [sym.imp.msvcrt.dll_free]
add esp, 4
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18