Function at 0x42ea00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7c05
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov dword [ebp - 0x278], edi
mov esi, edx
mov dword [ebp - 0x274], ebx
mov dword [ebp - 4], ebx
cmp dword [esi + 0x14], 0x10
jb 0x42ea4d
mov eax, dword [esi]
jmp 0x42ea4f
mov eax, esi
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov dword [ebp - 0x270], eax
cmp eax, ebx
jne 0x42ea7f
push ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push 0x4eb6d4
mov ecx, edi
mov byte [edi], bl
call fcn.00405360
jmp 0x42eed9
push eax
call fcn.004a64f8
mov dword [ebp - 0x268], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x270]
push ecx
push ebx
push eax
call sub.MSVCR100.dll_memset
add esp, 0x10
cmp dword [esi + 0x14], 0x10
jb 0x42eaaa
mov eax, dword [esi]
jmp 0x42eaac
mov eax, esi
mov esi, dword [ebp - 0x268]
mov edx, dword [ebp - 0x270]
push esi
push edx
push ebx
push eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
cmp eax, ebx
jne 0x42eae5
push ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push 0x4eb6d4
mov ecx, edi
mov byte [edi], bl
call fcn.00405360
push esi
jmp 0x42eed0
mov dword [ebp - 0x27c], ebx
mov dword [ebp - 0x26c], ebx
mov dword [ebp - 0x28c], ebx
mov dword [ebp - 0x288], ebx
mov dword [ebp - 0x284], ebx
lea ecx, [ebp - 0x26c]
push ecx
lea edx, [ebp - 0x274]
push edx
push str.VarFileInfoTranslation
push esi
mov byte [ebp - 4], 2
call dword [sym.imp.VERSION.dll_VerQueryValueA]
cmp eax, ebx
jne 0x42eb6c
push ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push 0x4eb6d4
mov ecx, edi
mov byte [edi], bl
call fcn.00405360
lea esi, [ebp - 0x28c]
call fcn.00402aa0
mov eax, dword [ebp - 0x268]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x42eeec
mov ecx, dword [ebp + 8]
push ecx
jmp 0x42eee3
push 0x18
mov esi, 0xf
push str.StringFileInfo_04x_04x
lea ecx, [ebp - 0x22c]
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
call fcn.00405360
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 3
mov dword [ebp - 0x270], esp
push 0xffffffffffffffff
push ebx
lea edx, [ebp + 8]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push edx
mov byte [ecx], bl
call fcn.004059c0
sub esp, 0x1c
mov ecx, esp
mov byte [ebp - 4], 4
mov dword [ebp - 0x290], esp
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x22c]
mov dword [ecx + 0x14], esi
mov dword [ecx + 0x10], ebx
push eax
mov byte [ecx], bl
call fcn.004059c0
lea esi, [ebp - 0x248]
mov byte [ebp - 4], 3
call fcn.004337e0
add esp, 0x38
push eax
lea ecx, [ebp - 0x22c]
mov byte [ebp - 4], 5
call fcn.004045b0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x234], 0x10
jb 0x42ec1d
mov ecx, dword [ebp - 0x248]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor esi, esi
test dword [ebp - 0x26c], 0xfffffffc
jbe 0x42ecfe
cmp dword [ebp - 0x218], 0x10
mov ecx, dword [ebp - 0x22c]
jae 0x42ec44
lea ecx, [ebp - 0x22c]
mov eax, dword [ebp - 0x274]
movzx edx, word [eax + esi*4 + 2]
movzx eax, word [eax + esi*4]
push edx
push eax
push ecx
lea edx, [ebp - 0x210]
call fcn.00435cc0
lea eax, [ebp - 0x210]
add esp, 0xc
mov dword [ebp - 0x234], 0xf
mov dword [ebp - 0x238], ebx
mov byte [ebp - 0x248], bl
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42ec83
sub eax, edx
push eax
lea ecx, [ebp - 0x210]
push ecx
lea ecx, [ebp - 0x248]
call fcn.00405360
lea ecx, [ebp - 0x248]
lea edi, [ebp - 0x28c]
mov byte [ebp - 4], 6
call fcn.0040a010
mov byte [ebp - 4], 3
cmp dword [ebp - 0x234], 0x10
jb 0x42ecd1
mov edx, dword [ebp - 0x248]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
push 0x200
lea eax, [ebp - 0x210]
push ebx
push eax
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp - 0x26c]
inc esi
shr ecx, 2
add esp, 0xc
cmp esi, ecx
jb 0x42ec2f
mov edi, dword [ebp - 0x278]
mov ecx, dword [ebp - 0x288]
mov esi, dword [ebp - 0x28c]
sub ecx, esi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
jne 0x42eda0
push ebx
mov dword [edi + 0x14], 0xf
mov dword [edi + 0x10], ebx
push 0x4eb6d4
mov ecx, edi
mov byte [edi], bl
call fcn.00405360
cmp dword [ebp - 0x218], 0x10
jb 0x42ed53
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x218], 0xf
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
cmp esi, ebx
je 0x42eb49
mov edx, dword [ebp - 0x290]
mov ebx, dword [ebp - 0x28c]
mov edi, dword [ebp - 0x288]
push edx
mov eax, ebx
call fcn.00404110
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
mov edi, dword [ebp - 0x278]
add esp, 8
jmp 0x42eb49
cmp dword [esi + 0x14], 0x10
jb 0x42eda8
mov esi, dword [esi]
mov ecx, dword [ebp - 0x268]
lea edx, [ebp - 0x26c]
push edx
lea eax, [ebp - 0x27c]
push eax
push esi
push ecx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
cmp eax, ebx
jne 0x42ee12
push ebx
mov esi, 0xf
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push 0x4eb6d4
mov ecx, edi
mov byte [edi], bl
call fcn.00405360
cmp dword [ebp - 0x218], 0x10
jb 0x42edfb
mov edx, dword [ebp - 0x22c]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x218], esi
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
jmp 0x42eb3e
mov edx, dword [ebp - 0x27c]
mov eax, edx
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], ebx
mov byte [ebp - 0x264], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x42ee33
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x264]
call fcn.00405360
mov byte [ebp - 4], 7
lea edx, [ebp - 0x264]
mov esi, 0xf
mov dword [edi + 0x14], esi
mov dword [edi + 0x10], ebx
push edx
mov ecx, edi
mov byte [edi], bl
call fcn.004045b0
cmp dword [ebp - 0x250], 0x10
jb 0x42ee81
mov eax, dword [ebp - 0x264]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp dword [ebp - 0x218], 0x10
mov dword [ebp - 0x250], esi
mov dword [ebp - 0x254], ebx
mov byte [ebp - 0x264], bl
jb 0x42eeac
mov ecx, dword [ebp - 0x22c]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov dword [ebp - 0x218], esi
lea esi, [ebp - 0x28c]
mov dword [ebp - 0x21c], ebx
mov byte [ebp - 0x22c], bl
call fcn.00402aa0
mov edx, dword [ebp - 0x268]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
cmp dword [ebp + 0x1c], 0x10
jb 0x42eeec
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret