Function at 0x4bee00
Capabilities:
Get file version info

Disassembly:
sub esp, 0x1dc
mov eax, dword [0x417270]
xor eax, esp
mov dword [esp + 0x1d8], eax
mov eax, dword [esp + 0x1e0]
push ebx
push edi
xor edi, edi
xor ebx, ebx
mov dword [esp + 8], edi
mov dword [esp + 0xc], edi
cmp eax, edi
jne 0x4bee55
call fcn.004c3bd0
mov eax, dword [0x53f87c]
mov cx, word [0x416ff0]
mov edx, eax
and edx, 0x3ff
cmp cx, dx
je 0x4bee62
cmp cx, di
je 0x4bee62
movzx eax, cx
jmp 0x4bee58
movzx eax, ax
or eax, 0x800
mov dword [0x53f87c], eax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 9
je 0x4bf162
push ebp
push esi
push 0x104
call fcn.004cce67
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
cmp ebp, edi
je 0x4bf094
mov edx, dword [0x53f87c]
push edx
call fcn.004c3d00
mov esi, eax
test esi, esi
je 0x4bf094
mov eax, dword [0x5406c0]
push 0x104
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, ebp
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4beec0
sub eax, edx
add eax, ebp
jmp 0x4beed0
dec eax
cmp byte [eax], 0x2e
jne 0x4beed0
mov byte [eax + 1], 0x6c
mov cl, byte [esi]
mov ebx, eax
inc eax
inc eax
mov byte [eax], cl
mov dl, byte [esi + 1]
inc eax
mov byte [eax], dl
mov byte [eax + 1], 0
lea esp, [esp]
dec ebx
cmp byte [ebx], 0x5c
jne 0x4beef0
xor eax, eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], eax
lea eax, [esp + 0x2c]
push eax
push ebp
inc ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
je 0x4bf094
push ebp
call fcn.004cce67
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x4bf094
mov edx, dword [esp + 0x10]
mov ecx, eax
push ecx
push ebp
push 0
push edx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4bf094
mov ecx, 0xa
mov esi, 0x421254
lea edi, [esp + 0x50]
rep movsd dword es:[edi], dword [esi]
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x58]
movsw word es:[edi], word [esi]
mov esi, dword [esp + 0x1c]
push edx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4bef80
mov edi, 0x46b
jmp 0x4bf094
mov eax, dword [esp + 0x18]
push ebx
push eax
call fcn.004cfb90
add esp, 8
test eax, eax
je 0x4befac
mov ecx, dword [esp + 0x18]
push 1
lea edx, [esp + 0x24]
mov edi, 0x46c
push edx
mov dword [esp + 0x28], ecx
push edi
jmp 0x4bf081
mov edi, dword [esp + 0x10]
push esi
push ebp
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4befc8
mov edi, 0x46b
jmp 0x4bf094
lea edx, [esp + 0x1c]
push edx
mov ecx, 0x5c
lea eax, [esp + 0x2c]
mov word [esp + 0x54], cx
push eax
lea ecx, [esp + 0x58]
push ecx
push esi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4beff5
mov edi, 0x46c
jmp 0x4bf094
cmp dword [esp + 0x1c], 0x34
je 0x4bf006
mov edi, 0x46b
jmp 0x4bf094
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
cmp ecx, 0x60000
ja 0x4bf032
cmp ecx, 0x40000
jb 0x4bf032
push edi
call fcn.004c3d60
test eax, eax
jne 0x4bf15b
mov edi, 0x46b
jmp 0x4bf094
movzx eax, word [eax + 0xa]
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
movzx edx, cx
push edx
push eax
lea ecx, [esp + 0x38]
push 0x42124c
push ecx
mov edi, 0x46d
call esi
push 0
push 6
push 0
push 4
lea edx, [esp + 0x5c]
push 0x421238
push edx
call esi
add esp, 0x28
push 2
lea edx, [esp + 0x24]
lea eax, [esp + 0x34]
lea ecx, [esp + 0x40]
push edx
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
push edi
call fcn.004c3b00
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.004c3a20
mov eax, 0x809
mov dword [0x53f87c], eax
test edi, edi
je 0x4bf160
cmp edi, 0x46b
jne 0x4bf0c6
push edi
call fcn.004c3b00
push eax
lea ecx, [esp + 0xec]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 8
lea eax, [esp + 0xe8]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4bf0d0
mov edx, dword [0x421230]
mov cl, byte [0x421234]
mov dword [eax], edx
push 0xdf01
mov byte [eax + 4], cl
call fcn.004c3b00
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4bf0f5
lea edi, [esp + 0xe8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4bf106
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
push 1
mov ecx, eax
lea edx, [esp + 0x24]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
push 0xdf00
mov dword [esp + 0x2c], ebx
call fcn.004c3b00
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.004c3a20
push 0x30
lea ecx, [esp + 0xb8]
push ecx
lea edx, [esp + 0xf0]
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, dword [0x53f87c]
pop esi
pop ebp
and eax, 0x3ff
mov word [0x416ff0], ax
mov eax, dword [esp + 0xc]
pop edi
pop ebx
test eax, eax
je 0x4bf180
push eax
call fcn.004cb4e1
add esp, 4
mov eax, dword [esp]
test eax, eax
je 0x4bf190
push eax
call fcn.004cb4e1
add esp, 4
mov eax, dword [esp + 0x1e0]
test eax, eax
jne 0x4bf1b7
mov eax, 1
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.004cb3aa
add esp, 0x1dc
ret 4
movzx ecx, word [0x416ff0]
xor edx, edx
cmp eax, ecx
mov ecx, dword [esp + 0x1d8]
sete dl
xor ecx, esp
mov eax, edx
call fcn.004cb3aa
add esp, 0x1dc
ret 4