Function at 0x51a640
Capabilities:
Get file version info

Disassembly:
sub esp, 0x1dc
mov eax, dword [0x463df0]
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 0x51a695
call fcn.0051f3f0
mov eax, dword [0x59e67c]
mov cx, word [0x463b78]
mov edx, eax
and edx, 0x3ff
cmp cx, dx
je 0x51a6a2
cmp cx, di
je 0x51a6a2
movzx eax, cx
jmp 0x51a698
movzx eax, ax
or eax, 0x800
mov dword [0x59e67c], eax
mov ecx, eax
and ecx, 0x3ff
cmp ecx, 9
je 0x51a99d
push ebp
push esi
push 0x104
call fcn.00528917
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
cmp ebp, edi
je 0x51a8ca
mov edx, dword [0x59e67c]
push edx
call fcn.0051f520
mov esi, eax
test esi, esi
je 0x51a8ca
mov eax, dword [0x59f4b8]
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 0x51a700
sub eax, edx
add eax, ebp
jmp 0x51a710
dec eax
cmp byte [eax], 0x2e
jne 0x51a710
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 0x51a730
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 0x51a8ca
push ebp
call fcn.00528917
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x51a8ca
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 0x51a8ca
mov ecx, 0xa
mov esi, 0x46e400
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 0x51a7c0
mov edi, 0x46b
jmp 0x51a8ca
mov eax, dword [esp + 0x18]
push ebx
push eax
call fcn.0052b1be
add esp, 8
test eax, eax
je 0x51a7ec
mov ecx, dword [esp + 0x18]
push 1
lea edx, [esp + 0x24]
mov edi, 0x46c
push edx
mov dword [esp + 0x28], ecx
push edi
jmp 0x51a8b7
mov edi, dword [esp + 0x10]
push esi
push ebp
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x51a808
mov edi, 0x46b
jmp 0x51a8ca
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 0x51a835
mov edi, 0x46c
jmp 0x51a8ca
cmp dword [esp + 0x1c], 0x34
je 0x51a846
mov edi, 0x46b
jmp 0x51a8ca
mov eax, dword [esp + 0x28]
mov ecx, dword [eax + 8]
cmp ecx, 0x6000b
ja 0x51a86c
jb 0x51a86c
push edi
call fcn.0051f580
test eax, eax
jne 0x51a996
mov edi, 0x46b
jmp 0x51a8ca
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 0x46e3f8
push ecx
mov edi, 0x46d
call esi
push 0xb
push 6
lea edx, [esp + 0x54]
push 0x46e3f8
push edx
call esi
add esp, 0x20
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.0051f320
push eax
lea eax, [esp + 0xf4]
push eax
call fcn.0051f240
mov eax, 0x809
mov dword [0x59e67c], eax
test edi, edi
je 0x51a99b
cmp edi, 0x46b
jne 0x51a8fc
push edi
call fcn.0051f320
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 cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x51a904
mov edx, dword [0x46e3f0]
mov cl, byte [0x46e3f4]
mov dword [eax], edx
push 0xdf01
mov byte [eax + 4], cl
call fcn.0051f320
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x51a930
lea edi, [esp + 0xe8]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x51a941
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.0051f320
push eax
lea eax, [esp + 0xc0]
push eax
call fcn.0051f240
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 [0x59e67c]
pop esi
pop ebp
and eax, 0x3ff
mov word [0x463b78], ax
mov eax, dword [esp + 0xc]
pop edi
pop ebx
test eax, eax
je 0x51a9bb
push eax
call fcn.00526d54
add esp, 4
mov eax, dword [esp]
test eax, eax
je 0x51a9cb
push eax
call fcn.00526d54
add esp, 4
mov eax, dword [esp + 0x1e0]
test eax, eax
jne 0x51a9f2
mov eax, 1
mov ecx, dword [esp + 0x1d8]
xor ecx, esp
call fcn.00526a8a
add esp, 0x1dc
ret 4
movzx ecx, word [0x463b78]
xor edx, edx
cmp eax, ecx
mov ecx, dword [esp + 0x1d8]
sete dl
xor ecx, esp
mov eax, edx
call fcn.00526a8a
add esp, 0x1dc
ret 4