Function at 0x480290
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x50dc10]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x84]
push esi
push edi
mov edi, dword [ebp + 0xc]
push eax
push ebx
mov byte [0x5258a0], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x98], eax
test eax, eax
jne 0x480372
push eax
push eax
lea eax, [ebp - 0x9c]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
call fcn.00493410
test eax, eax
je 0x480350
call fcn.00493410
cmp dword [eax], 0
je 0x480350
mov eax, dword [0x52e820]
test eax, eax
je 0x480314
mov esi, dword [eax + 0x190]
jmp 0x48031a
mov esi, dword [0x52e824]
call fcn.00493410
test eax, eax
je 0x48032c
call fcn.00493410
mov ecx, dword [eax]
jmp 0x48032e
xor ecx, ecx
mov eax, dword [ebp - 0x9c]
push eax
push eax
push dword [0x52e820]
push esi
push 0
push 0x1341
push str.Misc.c
push 2
call ecx
add esp, 0x20
push dword [ebp - 0x9c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
pop edi
pop esi
mov eax, 0x4eb673
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004e2538
mov esp, ebp
pop ebp
ret
push eax
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
add esp, 4
mov esi, eax
push esi
push dword [ebp - 0x98]
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
lea eax, [ebp - 0x68]
test edi, edi
jne 0x480443
push 0x4f3a14
push eax
call fcn.004010a0
add esp, 8
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4804dd
mov ecx, dword [ebp - 0x9c]
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x80], eax
mov eax, dword [ecx + 0x2c]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x94]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x94]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SystemTimeToTzSpecificLocalTime]
movzx eax, word [ebp - 0x6c]
push str._04d__02d__02d__02d:_02d:_02d
push eax
movzx eax, word [ebp - 0x6e]
push eax
movzx eax, word [ebp - 0x70]
push eax
movzx eax, word [ebp - 0x72]
push eax
movzx eax, word [ebp - 0x76]
push eax
movzx eax, word [ebp - 0x78]
push eax
push 0x1355
push str.Misc.c
push str._04d__02d__02d__02d:_02d:_02d
push 0x12c
push 0x5258a0
call fcn.00482bc0
add esp, 0x30
jmp 0x4804dd
push edi
push str.StringFileInfo040904e2_s
push eax
call fcn.004010a0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x48048f
mov ecx, dword [ebp - 0xa0]
mov edx, 0x5258a0
sub edx, ecx
nop dword [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x480480
jmp 0x4804dd
push edi
lea eax, [ebp - 0x68]
push str.StringFileInfo040904b0_s
push eax
call fcn.004010a0
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0xa0]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4804dd
mov ecx, dword [ebp - 0xa0]
mov edx, 0x5258a0
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4804d0
push esi
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 0x5258a0
pop edi
pop esi
pop ebx
call fcn.004e2538
mov esp, ebp
pop ebp
ret